I'm using a Rails 5.2 app and have an application.scss
file filled with individual imports
@import '../stylesheets/pages/home';
@import '../stylesheets/pages/product_details';
@import '../stylesheets/pages/cart';
@import '../stylesheets/pages/downloads';
This is laborious and error prone so I'd prefer to use globbing
@import '../stylesheets/components/*';
However, this fails. When I run bin/webpack
I get the following error:
ERROR in ./app/webpacker/stylesheets/application.scss (./node_modules/css-loader/dist/cjs.js??ref--7-1!./node_modules/postcss-loader/src??ref--7-2!./node_modules/sass-loader/lib/loader.js??ref--7-3!./app/webpacker/stylesheets/application.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
@import '../stylesheets/components/*';
^
File to import not found or unreadable: ../stylesheets/components/*.