webpack-svgstore-plugin
webpack-svgstore-plugin copied to clipboard
Support assetsPublicPath in webpack config
When assetsPublicPath in webpack isnt "/", module not add it to svg url in xhr
@gendalf you are right. which logic u expect?
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