From 6001907ed5c42105a787dcac9e7847102bdae881 Mon Sep 17 00:00:00 2001 From: zq <136432190602163.com> Date: Thu, 17 Jul 2025 16:08:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9js=E6=89=93=E5=8C=85=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/webpack.config.js b/build/webpack.config.js index c1f2e31..6bba80e 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -12,7 +12,7 @@ module.exports = { }, output: { path: path.resolve(__dirname, '../dist'), - filename: '[name].umd.js', + filename: 'js/[name].umd.js', library: 'ZhichengUI', libraryTarget: 'umd', umdNamedDefine: true, @@ -20,7 +20,8 @@ module.exports = { }, resolve: { alias: { - '@': path.resolve(__dirname, './packages') // 确保别名指向正确 + '@': path.resolve(__dirname, './packages'), // 确保别名指向正确 + '@assets': path.resolve(__dirname, './packages/assets') } }, module: { @@ -86,7 +87,7 @@ module.exports = { limit: 4096, name: 'img/[name].[hash:8].[ext]', esModule: false, - publicPath: './' + publicPath: '../' } }] }