isomorphic-style-loader icon indicating copy to clipboard operation
isomorphic-style-loader copied to clipboard

use in webpack5

Open Bing4Autodesk opened this issue 4 years ago • 4 comments

Looks like it doesn't support webpack5

Bing4Autodesk avatar Sep 15 '21 07:09 Bing4Autodesk

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

Sql544 avatar Oct 21 '21 09:10 Sql544

I solved the problem in this way

Bing4Autodesk avatar Oct 21 '21 09:10 Bing4Autodesk

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

ryrybeal13 avatar Oct 21 '21 13:10 ryrybeal13

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

Bing4Autodesk avatar Oct 21 '21 13:10 Bing4Autodesk