-
-
Notifications
You must be signed in to change notification settings - Fork 256
CSS background image fails to load because of backslash #256
Comments
Use |
The problem is I want to resemble the folder structure in Your approach: I fixed the above issue by using a regex to replace the slashes. |
@Legends Can you create minimum reproducible test repo? |
Here it is: repo |
I met the same problem! const relativeFileLoader = (ext = '[ext]') => ({
loader: 'file-loader',
options: {
useRelativePath: true,
name: `[name].${ext}`,
context: resolve('src')
}
}); this will output |
@ldwonday why you use |
@evilebottnawi I am so sorry, maybe this porblem is other package's bug, and it was fixed! |
Same issue here. The following config:
provides me with paths like: Changing this to the following:
provides me with paths like: The lines that cause this difference seem to be these:
Maybe this issue is related to this one: nodejs/node#13887 ? |
@Nickman87 can you create minimum reproducible test repo to ensure bug related to above issue, also please provide windows os version |
@Nickman87 friendly ping. Problem still exists? If yes can you create minimum reproducible test repo? |
I have not yet found the time to make a small test repo. I will try to get it done in the coming days! |
@Nickman87 friendly ping |
@evilebottnawi I'm sorry, I completely forgot. I'll have to cross reference more stuff to see what is going wrong to get a sample project that actually fails... |
/cc @Nickman87 can we close problem? |
Uh oh!
There was an error while loading. Please reload this page.
node 9.5
file-loader ^1.1.9
With the following approach I have a problem with background images in css files.
The last slash is a backslash!
Folder path
src\images\
The
blue.jpg
is requested in my css file:The text was updated successfully, but these errors were encountered: