Files
openfoodnetwork/config/webpack/base.js
Gaetan Craig-Riou b3dc76b8cf Fix configuration and scss to get webpack to compile
Move the Postcss config hack to postcss.config.js
2026-01-06 14:31:32 +11:00

22 lines
579 B
JavaScript

const { webpackConfig } = require('@rails/webpacker')
module.exports = webpackConfig
// TODO try removing this
function addQuietDepsToSassLoader (subloader) {
if (subloader.loader === 'sass-loader') {
subloader.options.sassOptions = {
...subloader.options.sassOptions,
quietDeps: true
}
}
}
//webpackConfig.loaders.keys().forEach(loaderName => {
// const loader = webpackConfig.loaders.get(loaderName);
// if (loaderName === 'sass') {
// loader.use.forEach(addQuietDepsToSassLoader);
// }
// loader.use.forEach(hotfixPostcssLoaderConfig);
//});