From b66e3bdec15587b0030bfb42cb311cc1d5fb5b0c Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Mon, 21 Mar 2022 17:27:47 +0800 Subject: [PATCH] 去缓存 --- build/webpack.prod.conf.js | 4 ++-- config/index.js | 2 +- dist.zip | Bin 0 -> 268403 bytes vue.config.js | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 dist.zip create mode 100644 vue.config.js diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 3769676..34c64e4 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -25,8 +25,8 @@ const webpackConfig = merge(baseWebpackConfig, { output: { publicPath: './', path: config.build.assetsRoot, - filename: utils.assetsPath('js/[name].[chunkhash].'+Version+'js'), - chunkFilename: utils.assetsPath('js/[id].[chunkhash].'+Version+'js') + filename: utils.assetsPath('js/[name].[chunkhash].js'), + chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') }, plugins: [ // http://vuejs.github.io/vue-loader/en/workflow/production.html diff --git a/config/index.js b/config/index.js index a9addb1..3e93a4d 100644 --- a/config/index.js +++ b/config/index.js @@ -61,7 +61,7 @@ module.exports = { productionSourceMap: false, // https://webpack.js.org/configuration/devtool/#production - devtool: '#source-map', + devtool: 'inline-source-map', // Gzip off by default as many popular static hosts such as // Surge or Netlify already gzip all static assets for you. diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..1e29288 Binary files /dev/null and b/dist.zip differ diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..8ab7693 --- /dev/null +++ b/vue.config.js @@ -0,0 +1 @@ +module.exports = {chainWebpack:config=>{    config.rule('js').include.add(/node_modules\/(dom7|swiper)\/.*/)  }} -- libgit2 0.21.4