You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 28, 2026. It is now read-only.
Ah thx. Great! webpack is awesome 👍
I think the README should be more explicit on this point. Something like this (in case my presumption are correct 😀):
@import statements will be resolved by the css loader. The file will be included in place of the statement url(...) statements will stay untouched unless a loader for that file-type has been specified in the webpack options.
I think the line "You should define useful loaders by config." is still a bit unclear. Would be nice to include some example config that will be passed to webpack. I sought for a way to pass the url-loader a config object.
Activity
jhnns commentedon Apr 3, 2013
Sry I'm too dumb to get it. Tried something like this:
sokra commentedon Apr 3, 2013
And configure it in the webpack options:
Then:
For rar cases it also possible to overwrite it in the css:
Generally
url(file)->require("./file")andurl(~file)->require("file")sokra commentedon Apr 3, 2013
The
url-loadergenerates a Data Url if file size below the limit. Elsewise it fall back to thefile-loader.The
file-loadergenerates a file in youroutput.path. The basename is a md5 hash and extension is copied from original file.jhnns commentedon Apr 3, 2013
Ah thx. Great! webpack is awesome 👍
I think the README should be more explicit on this point. Something like this (in case my presumption are correct 😀):
@importstatements will be resolved by the css loader. The file will be included in place of the statementurl(...)statements will stay untouched unless a loader for that file-type has been specified in the webpack options.jhnns commentedon Apr 3, 2013
Does the url() behaviour also apply on the less-loader? Or should it always be combined with the css-loader?
sokra commentedon Apr 3, 2013
The
less-loaderjust emits css. You have to configure it like this:Check this example config.
jhnns commentedon Apr 3, 2013
Yep, thx!
jhnns commentedon Apr 9, 2013
I think the line "You should define useful loaders by config." is still a bit unclear. Would be nice to include some example config that will be passed to webpack. I sought for a way to pass the url-loader a config object.
Merge pull request webpack#1 from jhnns/master