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

webpack-dev-server 404 #159

Open
josh08h opened this issue Mar 1, 2018 · 2 comments
Open

webpack-dev-server 404 #159

josh08h opened this issue Mar 1, 2018 · 2 comments

Comments

@josh08h
Copy link

josh08h commented Mar 1, 2018

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?

@lgordey
Copy link
Collaborator

lgordey commented Apr 22, 2018

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

@lgordey
Copy link
Collaborator

lgordey commented Apr 22, 2018

@josh08h Please check the related issues: #134 #152

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

No branches or pull requests

2 participants