I've upgraded everything to Webpacker 6 and seen nice speed improvements with Webpack 5.
One thing I did not manage to replicate is globbing for SCSS files.
With Webpacker 5 we used node-sass-glob-importer which integration with Webpacker is fairly well documented.
With Webpacker 6 the code cannot be ported 1:1 so I tried postcss-easy-import (built-in globbing, in theory) and postcss-import-ext-glob (with a special @import-glob directive) but did not manage to have dir/**/*.scss detect and import files.
Have you or anyone else encountered the need for globbing files with Webpacker 6 ?
Thanks :-)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks a lot Andrew for this guide !
I've upgraded everything to Webpacker 6 and seen nice speed improvements with Webpack 5.
One thing I did not manage to replicate is globbing for SCSS files.
With Webpacker 5 we used
node-sass-glob-importer
which integration with Webpacker is fairly well documented.With Webpacker 6 the code cannot be ported 1:1 so I tried
postcss-easy-import
(built-in globbing, in theory) andpostcss-import-ext-glob
(with a special@import-glob directive
) but did not manage to havedir/**/*.scss
detect and import files.Have you or anyone else encountered the need for globbing files with Webpacker 6 ?
Thanks :-)