#webpacker
8 postsEnvironment variables in assets with Heroku Pipelines
I’ve been using Heroku Pipelines for a bit on a new project which has been great at helping us take code from staging and push it to…
Ignoring Moment.js Locales with Webpacker
There’s a slight pain point when loading Moment.js through Webpack in that it pulls in every single locale available, regardless of whether…
Configuring Webpack externals with Webpacker
Webpack provides a feature known as externals which allows you to instruct it not to bundle any assets that you will provide externally at…
Allow tree-shaking with Lodash
Despite pulling in just one method from Lodash I noticed that when I ran my bundle through Webpack Visualizer I was still importing the…
Import whole directory in Webpack(er)
Like an amateur I’ve been importing all my assets one-by-one when using Webpacker to get them all listed in the app manifest. It’s annoying…
Is webpack still compiling?
I’ve just run into this issue using Rails Webpacker on Heroku in production. Everything was worked fine locally but once it was deployed the…
Replacing Rails Asset Pipeline with Webpacker
I'll admit that I'm still relatively new to Rails Webpacker, but on a new project I've decided to completely replace the Sprockets asset…
Rails Webpacker and Sass undefined variable error
I've recently started using Webpacker with Rails as an alternative to the asset pipeline. In addition to compiling my Javascript assets I've…