Move public path to dev config

This commit is contained in:
Alasdair Smith 2018-01-12 12:30:20 +00:00
parent 4642d55b7b
commit dadd74e730
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,10 @@ module.exports = merge(base, {
// Enable source maps for dev (fast compilation, slow runtime)
devtool: 'cheap-module-eval-source-map',
output: {
publicPath: '/public/js/frontend/'
},
devServer: {
// Disable webpack dev server auto-reload
inline: false,

View file

@ -12,7 +12,6 @@ module.exports = {
// kept in memory for speed
output: {
path: path.join(__dirname, '/public/js/frontend'),
// publicPath: '/frontend/',
filename: '[name].js',