From 41ba52032d161637c650680076f6103e5ec320aa Mon Sep 17 00:00:00 2001 From: "lei.jiang" Date: Wed, 27 Jun 2018 21:22:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0pwa=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.prod.conf.js | 8 ++++++++ index.html | 4 ++-- manifest.json | 6 +++--- sw.js | 14 ++++++++++---- 4 files changed, 23 insertions(+), 9 deletions(-) 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 @@