Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Support assetsPublicPath in webpack config #106

Open
gendalf opened this issue Aug 20, 2016 · 2 comments
Open

Support assetsPublicPath in webpack config #106

gendalf opened this issue Aug 20, 2016 · 2 comments

Comments

@gendalf
Copy link

gendalf commented Aug 20, 2016

When assetsPublicPath in webpack isnt "/", module not add it to svg url in xhr

@mrsum
Copy link
Owner

mrsum commented Aug 23, 2016

@gendalf you are right. which logic u expect?

@gendalf
Copy link
Author

gendalf commented Aug 23, 2016

assetsPublicPath = "/"
svg = { path : "assets/svg.." }
Injected with path http://.../assets/svg... = 200

assetsPublicPath = "/clientroom"
svg = { path : "assets/svg.." }
Injected with path http://.../assets/svg... = 404
But can access by http://.../clientroom/assets/svg.. = 200

assetsPublicPath = "/clientroom"
svg = { path : "clientroom/assets/svg.." }
Injected with path http://.../clientroom/assets/svg... = 404

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants