This repository has been archived on 2020-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
counter/config/webpack/environment.js

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;