From 22446a5d662b04c69cad7ff4d71f69058e91158d Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Fri, 23 Aug 2024 14:11:28 +0800
Subject: [PATCH] 主题包更改、webpack添加@=src配置

---
 gz-customerSystem/craco.config.js |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/gz-customerSystem/craco.config.js b/gz-customerSystem/craco.config.js
index 13892fa..73c8f16 100644
--- a/gz-customerSystem/craco.config.js
+++ b/gz-customerSystem/craco.config.js
@@ -8,18 +8,22 @@
  * @Description: less配置
  */
 const CracoLessPlugin = require('craco-less');
+const path = require('path');
 
 module.exports = {
-	plugins: [
-		{
-			plugin: CracoLessPlugin,
-			options: {
-				lessLoaderOptions: {
-					lessOptions: {
-						javascriptEnabled: true,
-					},
+	plugins: [{
+		plugin: CracoLessPlugin,
+		options: {
+			lessLoaderOptions: {
+				lessOptions: {
+					javascriptEnabled: true,
 				},
 			},
 		},
-	],
-};
+	}, ],
+	webpack: {
+		alias: {
+			'@': path.resolve(__dirname, 'src'),
+		},
+	},
+};
\ No newline at end of file

--
Gitblit v1.8.0