Closed jasonlav closed 6 years ago
At first glance...
The way you are using extract text you are moving the CSS after the bundle is generated. This makes the url paths wrong.
I have never successfully changed structure like this, not for want of trying. I had to settle for a flat structure. (My experience was webpack 1 though.)
Im having the same issue
Solution is unrelated to resolve-url-loader. See the publicPath
option on the ExtractTextPlugin. It is also recommended to use the include
option as well.
extract-text-webpack-plugin: ^3.0.0 node-sass: ^4.5.3 sass-loader: ^6.0.6 webpack: ^3.5.1 resolve-url-loader: ^2.1.0
app.css appears to remain unchanged regardless of implementation of resolve-url-loader.
File structure
app.scss
app.css
app.js
webpack.config.js