Miscelaneous fixes for WP

This commit is contained in:
Dane Everitt 2019-02-02 18:49:51 -08:00
parent 91cf735646
commit ea923053eb
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 13 additions and 7 deletions

View file

@ -106,6 +106,7 @@ const cssLoaders = [
];
module.exports = {
target: 'web',
mode: process.env.NODE_ENV,
devtool: isProduction ? false : 'inline-source-map',
performance: {
@ -201,7 +202,7 @@ module.exports = {
},
devServer: {
contentBase: path.join(__dirname, 'public'),
publicPath: '/assets/',
publicPath: _.get(process.env, 'PUBLIC_PATH', '') + '/assets/',
allowedHosts: [
'.pterodactyl.test',
],