fix: serve public/assets with webpack-dev-server

This commit is contained in:
Baptiste Grob
2020-07-29 12:38:00 +02:00
parent f7601433b8
commit 90458982ce
3 changed files with 11 additions and 5 deletions

View File

@@ -11,6 +11,10 @@ module.exports = (_env, argv) => {
'/extensions': {
target: `http://localhost:${port}`,
pathRewrite: { '^/extensions': '/public/extensions' }
},
'/assets': {
target: `http://localhost:${port}`,
pathRewrite: { '^/assets': '/public/assets' }
}
},
port,