Add webpack publicPath
This commit is contained in:
parent
b81a28114f
commit
596aaf6a7f
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue