diff --git a/assets/build/webpack.config.js b/assets/build/webpack.config.js index 7073812..7e1ad1f 100644 --- a/assets/build/webpack.config.js +++ b/assets/build/webpack.config.js @@ -154,6 +154,11 @@ const webpackConfig = { Tether: 'tether', 'window.Tether': 'tether', }), + new webpack.DefinePlugin({ + WEBPACK_PUBLIC_PATH: (config.enabled.watcher) + ? JSON.stringify(config.publicPath) + : false, + }), new webpack.LoaderOptionsPlugin({ minimize: config.enabled.minify, debug: config.enabled.watcher, diff --git a/assets/build/webpack.config.watch.js b/assets/build/webpack.config.watch.js index 6f68603..807466b 100644 --- a/assets/build/webpack.config.watch.js +++ b/assets/build/webpack.config.watch.js @@ -11,9 +11,6 @@ module.exports = { new webpack.optimize.OccurrenceOrderPlugin(), new webpack.HotModuleReplacementPlugin(), new webpack.NoErrorsPlugin(), - new webpack.DefinePlugin({ - WEBPACK_PUBLIC_PATH: JSON.stringify(config.publicPath), - }), new BrowserSyncPlugin({ target: config.devUrl, publicPath: config.publicPath,