Closed Acksop closed 4 years ago
linkTag
should be used with file-loader
, please read docs, thanks
thanks, i'm a newbie with npm ... I just begin to understand how it works. so thank for your help !
Sure, but this way one can't process the urls inside the css, no? Or am I missing something?
Found a solution to my issue, using extract-loader
{
test: /\.css$/i,
use: [{ loader: "style-loader", options: { injectType: "linkTag" } },
"file-loader",
"extract-loader",
"css-loader"
],
},
Expected Behavior
npm run Build -->OK!
Actual Behavior
https://gist.github.com/Acksop/f5c39cb60d416b5660f3ea8df542c60c
Code
webpack.config.js
https://gist.github.com/Acksop/9ba4bfc40ab3996d95cd4b9d3ae1546b