Add webpack publicPath

This commit is contained in:
Ivan Diaz 2019-07-26 21:47:55 +02:00
parent b81a28114f
commit 596aaf6a7f

View File

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