kriasoft / isomorphic-style-loader

CSS style loader for Webpack that is optimized for isomorphic (universal) web apps.

Home Page:https://reactstarter.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use in webpack5

Bing4Autodesk opened this issue · comments

commented

Looks like it doesn't support webpack5

you can change you webpack config with css-loader esModule: false and try again

commented

I solved the problem in this way

Can you show an example of your rule with this patch in place?

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,
},
}
],
}