Add webpack publicPath

This commit is contained in:
Ivan Diaz 2019-07-26 21:47:55 +02:00
parent b81a28114f
commit 596aaf6a7f
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ const config = env => {
output: {
path: BUILD_DIR,
filename: '[name].js',
publicPath: '/'
},
module: {
rules: [
@ -78,6 +79,7 @@ const config = env => {
plugins: [
new htmlWebpackPlugin({
template: APP_DIR + '/index.html',
publicPath: '/'
}),
new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({