From 40da453d7c0aa9bbe5666ec6a8cceadf84e75160 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Fri, 15 Dec 2023 19:31:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(build):=20=E8=B5=84=E6=BA=90=E5=BC=95?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 11091e26..7c562067 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -127,12 +127,12 @@ const config = { '@theme-config', path.resolve(process.cwd(), 'docs/.vuepress/config') ) + config.output.filename(`${nowString}/${config.output.get('filename')}`); //输出文件名 + config.module.rule('images').use('url-loader').tap(changeLoaderOptions); + config.module.rule('fonts').use('url-loader').tap(changeLoaderOptions); + config.module.rule('media').use('url-loader').tap(changeLoaderOptions); + config.module.rule('svg').use('file-loader').tap(changeLoaderOptions); if (!isServer && process.env.NODE_ENV === 'production') { - config.output.filename(`${nowString}/${config.output.get('filename')}`); //输出文件名 - config.module.rule('images').use('url-loader').tap(changeLoaderOptions); - config.module.rule('fonts').use('url-loader').tap(changeLoaderOptions); - config.module.rule('media').use('url-loader').tap(changeLoaderOptions); - config.module.rule('svg').use('file-loader').tap(changeLoaderOptions); const extract_css_plugin = config.plugin('extract-css'); const extract_css_plugin_args = extract_css_plugin.get('args'); if (extract_css_plugin_args) { -- GitLab