Open crodriguez-plitzi opened 2 years ago
Hi, I had the same issue too.
I couldn't find the reason, but I solved it by not using fmr in development mode. So this way may not be appropriate if it must be separated into a css file even in development mode.
This is my webpack.config.js
const isDevelopment = process.env.NODE_ENV !== 'production'
module.exports = {
...
module: {
rules: [
...
{
test: /\.s?css$/,
use: [
isDevelopment
? 'style-loader'
: MiniCssExtractPlugin.loader,
'css-loader',
'sass-loader',
].filter(Boolean),
},
]
},
plugins: [
...
!isDevelopment &&
new MiniCssExtractPlugin({
filename: '[name].[contenthash:8].css',
}),
].filter(Boolean),
}
send a pr typeof window !== undefined should do it
Hi, any news about this issue? I have the same pb
hi, Testing this library i found problems with mini-css-extract-plugin, is there a way to solve this ?