Answer the question
In order to leave comments, you need to log in
webpack. Url-loader returns a misspelled url, what's the problem?
Good afternoon. In general, such trouble, url-loader returns a base64 curve.
require('url?limit=10000!./resources/images/obladaet.jpg');
{ test: /\.jpg$/, loader: "url-loader?prefix=img/" },
Answer the question
In order to leave comments, you need to log in
Hello. I just use stylus. I have this in my config:
{ test: /\.(png|jpg|gif)$/, loader: 'url-loader?limit=8192' }
{ test: /\.styl$/, loader: "style-loader!css-loader!stylus-loader?paths[]=node_modules&paths[]=app" }
.vusluk-logo
background-image url(./logo.png)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question