[optimizer/webpackConfig] protect against missing basePath

This commit is contained in:
spalger 2015-11-05 14:07:19 -06:00
parent 0ed8889de1
commit 0e8d481902

View file

@ -75,7 +75,7 @@ class BaseOptimizer {
path: this.env.workingDir,
filename: '[name].bundle.js',
sourceMapFilename: '[file].map',
publicPath: this.urlBasePath + '/bundles/',
publicPath: (this.urlBasePath || '') + '/bundles/',
devtoolModuleFilenameTemplate: '[absolute-resource-path]'
},