kriasoft / isomorphic-style-loader

CSS style loader for Webpack that is optimized for isomorphic (universal) web apps.
https://reactstarter.com
MIT License
1.27k stars 144 forks source link

use in webpack5 #201

Open Bing4Autodesk opened 3 years ago

Bing4Autodesk commented 3 years ago

Looks like it doesn't support webpack5

Sql544 commented 2 years ago

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

Bing4Autodesk commented 2 years ago

I solved the problem in this way

ryrybeal13 commented 2 years ago

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

Bing4Autodesk commented 2 years ago

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