Define WEBPACK_PUBLIC_PATH in webpack.config.js
Move WEBPACK_PUBLIC_PATH back to webpack.config.js
- Reverses a change made in 10899cf
- Closes #1718
This commit is contained in:
@@ -154,6 +154,11 @@ const webpackConfig = {
|
|||||||
Tether: 'tether',
|
Tether: 'tether',
|
||||||
'window.Tether': 'tether',
|
'window.Tether': 'tether',
|
||||||
}),
|
}),
|
||||||
|
new webpack.DefinePlugin({
|
||||||
|
WEBPACK_PUBLIC_PATH: (config.enabled.watcher)
|
||||||
|
? JSON.stringify(config.publicPath)
|
||||||
|
: false,
|
||||||
|
}),
|
||||||
new webpack.LoaderOptionsPlugin({
|
new webpack.LoaderOptionsPlugin({
|
||||||
minimize: config.enabled.minify,
|
minimize: config.enabled.minify,
|
||||||
debug: config.enabled.watcher,
|
debug: config.enabled.watcher,
|
||||||
|
|||||||
@@ -11,9 +11,6 @@ module.exports = {
|
|||||||
new webpack.optimize.OccurrenceOrderPlugin(),
|
new webpack.optimize.OccurrenceOrderPlugin(),
|
||||||
new webpack.HotModuleReplacementPlugin(),
|
new webpack.HotModuleReplacementPlugin(),
|
||||||
new webpack.NoErrorsPlugin(),
|
new webpack.NoErrorsPlugin(),
|
||||||
new webpack.DefinePlugin({
|
|
||||||
WEBPACK_PUBLIC_PATH: JSON.stringify(config.publicPath),
|
|
||||||
}),
|
|
||||||
new BrowserSyncPlugin({
|
new BrowserSyncPlugin({
|
||||||
target: config.devUrl,
|
target: config.devUrl,
|
||||||
publicPath: config.publicPath,
|
publicPath: config.publicPath,
|
||||||
|
|||||||
Reference in New Issue
Block a user