From 80e17e0bb74ded85b72030cf8ebed11e54ebd022 Mon Sep 17 00:00:00 2001 From: huangzhen Date: Thu, 5 Sep 2024 10:55:42 +0800 Subject: [PATCH] =?UTF-8?q?update=20@=E6=A8=A1=E7=89=88=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.base.js | 3 ++- build/webpack.com.js | 2 -- src/views/pages/comProduct/index.vue | 4 ++-- src/views/templates/cmsDetail/index.vue | 10 +++++----- src/views/templates/cmsList/index.vue | 9 +++++---- src/views/templates/cmsVoucher/index.vue | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/build/webpack.base.js b/build/webpack.base.js index b33fa9d..6d2c968 100644 --- a/build/webpack.base.js +++ b/build/webpack.base.js @@ -7,7 +7,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin"); const { VantResolver } = require('@vant/auto-import-resolver'); const AutoImport = require('unplugin-auto-import/webpack'); const Components = require('unplugin-vue-components/webpack'); - +const CssMinimizerPlugin = require("css-minimizer-webpack-plugin"); module.exports = { entry: path.join(__dirname, '../src/main.ts'), // 入口文件 @@ -96,6 +96,7 @@ module.exports = { }, extractComments: false, // 不从代码中提取注释 }), + new CssMinimizerPlugin(), ], }, resolve: { diff --git a/build/webpack.com.js b/build/webpack.com.js index 47b5efa..4c33869 100644 --- a/build/webpack.com.js +++ b/build/webpack.com.js @@ -2,7 +2,6 @@ const CompressionPlugin = require("compression-webpack-plugin"); const path = require("path"); const { VueLoaderPlugin } = require("vue-loader"); const TerserPlugin = require("terser-webpack-plugin"); -const CssMinimizerPlugin = require("css-minimizer-webpack-plugin"); module.exports = { mode: 'production', // 生产模式,会开启 tree-shaking 和 压缩代码,以及其他优化 @@ -68,7 +67,6 @@ module.exports = { }, extractComments: false, // 不从代码中提取注释 }), - new CssMinimizerPlugin(), ], }, resolve: { diff --git a/src/views/pages/comProduct/index.vue b/src/views/pages/comProduct/index.vue index 9d52e85..d4a14f2 100644 --- a/src/views/pages/comProduct/index.vue +++ b/src/views/pages/comProduct/index.vue @@ -54,8 +54,8 @@ - - + +
领取中
diff --git a/src/views/templates/cmsDetail/index.vue b/src/views/templates/cmsDetail/index.vue index ec7e79c..b05f659 100644 --- a/src/views/templates/cmsDetail/index.vue +++ b/src/views/templates/cmsDetail/index.vue @@ -11,7 +11,7 @@

-

+
- {{ pageData.goods.err_code ? 'code文案' : '立即兑换' }} + {{ pageData && pageData.goods.err_code ? 'code文案' : '立即兑换' }}
@@ -46,8 +46,8 @@

活动规则

- - + +
领取中
diff --git a/src/views/templates/cmsList/index.vue b/src/views/templates/cmsList/index.vue index 740c9c7..273540c 100644 --- a/src/views/templates/cmsList/index.vue +++ b/src/views/templates/cmsList/index.vue @@ -1,7 +1,7 @@