-
-
Notifications
You must be signed in to change notification settings - Fork 609
Closed
Description
Hello,
when i use "background: url(./icon.png)"
in my less file i got error Module not found: Error: Cannot resolve module 'icon.png'
.
Here part of webpack.config.js
file
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.
isaaclyman, nonoroazoro and romanzhivo
Metadata
Metadata
Assignees
Labels
No labels