12 lines
306 B
JavaScript
12 lines
306 B
JavaScript
const { environment } = require("@rails/webpacker");
|
|
|
|
["css", "moduleCss"].forEach(loaderName => {
|
|
const loader = environment.loaders.get(loaderName);
|
|
|
|
loader.test = /\.(p?css)$/i;
|
|
|
|
environment.loaders.insert(loaderName, loader);
|
|
});
|
|
// ...and above the following line:
|
|
module.exports = environment;
|