-
-
Notifications
You must be signed in to change notification settings - Fork 257
[v1.0.0] File paths in url()
broken (css-loader
)
#181
Comments
Also having this issue after upgrading while using url-loader (which I believe uses file-loader). node v6.11.0 Windows 10 x64
|
Have a same problem. node v8.1.4 os x Sierra
|
I think this will require an update to
|
Yep, this is incompatible with the current https://github.com/webpack-contrib/css-loader/blob/v0.28.4/lib/loader.js#L94-L102 It needs to be converted to write hoisted |
Same here. file-loader v1.0.0 also breaks the png files loaded when trying to get through the tutorial of the Webpack new guides on page: node 8.2.1 OSX Sierra |
As @Kovensky said, we will have to fix this in In the mean time & in the spirit of not making everyone's lives more difficult, i have updated the tags in npm while we sort this out.
Please keep in mind that |
when i change index.js,it ok
|
url()
broken in v1url()
broken (css-loader
)
We could either
|
|
We could also simply wait to hear back from Tobias on the state of the style loaders chain / changes & either add defaults to css-loader or wait for css-loader/new-loader. There is really nothing in file-loader 1.0.0 that's earth shattering feature or fix wide. It's just defaults & style updates. |
'file-loader' 1.0.0 is incompatible with 'css-loader'. For more details, see : webpack-contrib/css-loader#585 webpack-contrib/file-loader#181
can we please revert this change? There doesn't seem to be an value to use es6 imports here, the file on the other end isn't JS its never gonna benefit from treeshaking or any other thing you might use the esm syntax for. On the other hand its subtly breaking for everyone using file-loader in the most popular way (e.g. to chain against css-loader for loading css assets) I'm sorry if I sound a bit annoyed I just spent 4 hourts trying to figure out why my build was broken |
Revert file-loader to v0.11.2. Works fine. |
@jquense - Not entirely sure how this ended up back on In short, this isn't going to change again until css-loader/new-loader replaces the existing & Webpack eats e.t.w.p. which should simplify the style sheets loader chain significantly. |
I upgraded to
file-loader@1
and this is how@font-face
definitions are being rendered -The font paths are rendered just fine if I downgrade to
v0.11.2
My loader config looks like -
This might be happening for outside
url()
too, but don't have any use cases to test in my current project.Versions
webpack v3.4.1
node v8.1.2
file-loader v1.0.0
The text was updated successfully, but these errors were encountered: