diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 7f710543..aa7ebfb5 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -144,6 +144,14 @@ const webpackConfig = merge(baseWebpackConfig, { from: path.resolve(__dirname, '../static'), to: config.build.assetsSubDirectory, ignore: ['.*'] + }, + { + from: path.resolve(__dirname, '../sw.js'), + to: config.build.assetsSubDirectory + }, + { + from: path.resolve(__dirname, '../manifest.json'), + to: config.build.assetsSubDirectory } ]) ] diff --git a/index.html b/index.html index 44e2d764..859c27d9 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + vue-element-admin @@ -15,7 +15,7 @@