webpack-svgstore-plugin icon indicating copy to clipboard operation
webpack-svgstore-plugin copied to clipboard

Support assetsPublicPath in webpack config

Open gendalf opened this issue 8 years ago • 2 comments

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

gendalf avatar Aug 20 '16 12:08 gendalf

@gendalf you are right. which logic u expect?

mrsum avatar Aug 23 '16 09:08 mrsum

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

gendalf avatar Aug 23 '16 17:08 gendalf