Give devs more options for dynamically setting publicPath

This commit is contained in:
QWp6t
2017-01-09 16:22:23 -08:00
parent d06e72e20c
commit bdaf038248
4 changed files with 31 additions and 19 deletions

View File

@@ -122,9 +122,12 @@ let webpackConfig = {
root: config.paths.root,
verbose: false,
}),
/**
* It would be nice to switch to copy-webpack-plugin, but
* unfortunately it doesn't provide a reliable way of
* tracking the before/after file names
*/
new CopyGlobsPlugin({
// It would be nice to switch to copy-webpack-plugin, but unfortunately it doesn't
// provide a reliable way of tracking the before/after file names
pattern: config.copy,
output: `[path]${assetsFilenames}.[ext]`,
manifest: config.manifest,
@@ -141,11 +144,6 @@ let webpackConfig = {
Tether: 'tether',
'window.Tether': 'tether',
}),
new webpack.DefinePlugin({
WEBPACK_PUBLIC_PATH: (process.env.WEBPACK_PUBLIC_PATH)
? JSON.stringify(process.env.WEBPACK_PUBLIC_PATH)
: false,
}),
new webpack.LoaderOptionsPlugin({
minimize: config.enabled.optimize,
debug: config.enabled.watcher,