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

webpack-dev-server 404

Open josh08h opened this issue 6 years ago • 2 comments

I am trying to request my built svg sprite from webpack-dev-server however am getting a 404 (Not Found). This is because __svg__ is requesting the built sprite from my rails app as opposed to requesting it from my dev server.

Is there a way for __svg__ xhr url to request from my dev server in development and production url when building?..

Should let replacement = expr.id.name + ' = { filename: ' + "__webpack_require__.p +" + '"' + data.fileName + '" }'; change depending on whether we are running a dev server or prod build?

josh08h avatar Mar 01 '18 15:03 josh08h

I guess it should be fine with separate configs for prod and dev

lgordey avatar Apr 22 '18 18:04 lgordey

@josh08h Please check the related issues: https://github.com/mrsum/webpack-svgstore-plugin/issues/134 https://github.com/mrsum/webpack-svgstore-plugin/issues/152

lgordey avatar Apr 22 '18 19:04 lgordey