Set dynamically aboslute public path on 'npm run watch'; fix http/htt… (#1696)
* Set dynamically aboslute public path on 'npm run watch'; fix http/https hardcoded in watch.js * WEBPACK_PUBLIC_PATH fix
This commit is contained in:
@@ -191,6 +191,9 @@ webpackConfig = {
|
||||
'window.jQuery': 'jquery',
|
||||
'Tether': 'tether',
|
||||
'window.Tether': 'tether'
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
WEBPACK_PUBLIC_PATH: (argv.watch === true) ? JSON.stringify(path.join(config.publicPath, dist)) : false
|
||||
})
|
||||
],
|
||||
postcss: [
|
||||
|
||||
Reference in New Issue
Block a user