Closed zxcabs closed 6 years ago
Hello, when i use "background: url(./icon.png)" in my less file i got error Module not found: Error: Cannot resolve module 'icon.png'.
"background: url(./icon.png)"
Module not found: Error: Cannot resolve module 'icon.png'
Here part of webpack.config.js file
webpack.config.js
module: { loaders: [ { test: /\.less$/, loader: ExtractTextPlugin.extract('style', 'css?module&localIdentName=[hash:base64:5]!postcss!less') }, { test: /\.(jpg|png)$/, loader: 'url-loader?limit=100000' }, { test: /\.svg$/, loader: 'url-loader?limit=10000&mimetype=image/svg+xml' } ] },
If remove module options or less-loader all works well.
Hello, when i use
"background: url(./icon.png)"
in my less file i got errorModule not found: Error: Cannot resolve module 'icon.png'
.Here part of
webpack.config.js
fileIf remove module options or less-loader all works well.