publicPath is ../ for styles, and optionally uses envar for everything else

This commit is contained in:
QWp6t
2017-01-09 13:32:38 -08:00
parent bfb3ef7873
commit ce6024cde4
2 changed files with 7 additions and 2 deletions

View File

@@ -40,3 +40,6 @@ module.exports = mergeWithConcat(config, {
manifest: {},
});
if (config.enabled.watcher && !process.env.WEBPACK_PUBLIC_PATH) {
process.env.WEBPACK_PUBLIC_PATH = config.publicPath;
}