-
Notifications
You must be signed in to change notification settings - Fork 12k
(publicPath) Problem with CSS url path when I add publicPath(deployUrl) in angular-cli.json #4035
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
Labels
Comments
It will also break
|
Same issue webpack-contrib/css-loader#234 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
this is my directory:
I add
"deployUrl": "client/dist/",
to myangular-cli.json
.I have following CSS in the
styles.scss
:After I run
ng build
, it will translate to:When I load my application, the background SVG will be loaded from wrong path:
http://www.xxxx.com/MyApplication/client/dist/client/dist/more.svg
The correct Path should be:
http://www.xxxx.com/MyApplication/client/dist/more.svg
I can do a quick fix by overriding the
publicPath
setting ofExtractTextPlugin
Does anyone have the same issue or have a better fix for this?
The text was updated successfully, but these errors were encountered: