Closed JacekKraj closed 3 years ago
Hello @JacekKraj , I've helped someone to solve the same issue yesterday. In the zip you can find a working example.
There are 2 rules, one for css module and one for third party css.
{
test: /(\.scss|\.css)$/,
exclude: /node_modules/,
use: [
{
loader: "style-loader",
options: {
modules: {
namedExport: true,
},
},
},
{
loader: "css-loader",
options: {
sourceMap: true,
modules: {
localIdentName: "[name]__[local]___[hash:base64:5]",
},
importLoaders: 1,
},
},
],
},
{
test: /\.css$/i,
include: /node_modules/,
use: ["style-loader", "css-loader"],
}
I would like to ask for help, because my toastifies don't recive styles while on production mode. In development everything is ok. I need to add that i use css modules.
That's my wbepack.prod.config.js
Anyone can help me? I ask for clear answers because im a beginer developer :)