-
-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
urls are broken when using sourceMaps #232
Comments
I was having this issue. Setting
|
@JakeElder Great job! There is a same solution on stackoverflow. |
Thanks @JakeElder It would be great if we could have relative paths and sourceMaps. My application is deployed to various subdomains and creating a build for each is not very viable. |
Has anyone figured out exactly why this broke? I ran into this issue while updating dependencies this morning, but I'm not sure which update did it. I'll try downgrading some packages and see what happens (fyi, hadn't updated |
It took me several days to finally stumble upon this issue. My only option right now is to disable sourceMap for css. This issue manifested itself as a very, very long list of HTTP requests, such as
|
Heya, I've been trying to figure out what's happening here and I'm beginning to think it's actually working as intended...
|
It is not working as intended. Enabling of source maps should not produce the bad output. Source maps separately, generated code separately. Relative paths may not work in source maps themselves, but it should not affect the code. |
FWIW, I think this is a problem with |
On regular build it behaves the same way. |
@filipesilva Thanks! I spent so much time trying to figure out why assets are not loaded when source maps are enabled. Unfortunately, having to set |
@szimek adding |
There's another option - replace style-loader with vue-style-loader. It works fine for me.
rules: [
{
test: /\.css$/,
use: ['vue-style-loader', 'css-loader?sourceMap']
}
] |
@chatii2412 Thank you! I thought that it's impossible to provide source maps when styles are inside |
It's a |
I have this loader
and import font-awesome with this statement:
@import "~font-awesome/css/font-awesome.css";
Its working fine and the font url looks like this
But when I enable source maps via
It's not working anymore and the font url become
The text was updated successfully, but these errors were encountered: