use in webpack5
Bing4Autodesk opened this issue · comments
Bing commented
Looks like it doesn't support webpack5
Sql544 commented
you can change you webpack config with css-loader esModule: false and try again
Bing commented
I solved the problem in this way
Ryan Beal commented
Can you show an example of your rule with this patch in place?
Bing commented
{
test: /.iso.scss$/,
use: [
'isomorphic-style-loader',
{
loader: 'css-loader',
options: {
modules: {
localIdentName: '[hash:base64:5]',
},
esModule: false,
},
},
'postcss-loader',
{
loader: 'sass-loader',
options: {
implementation: require('node-sass'),
sourceMap: true,
},
}
],
}