From c5826176fc62f9b43b9d9c4e81863c0bc4e302f4 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Thu, 3 Apr 2025 05:29:29 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 4 ++++ src/index.html | 1 + src/pages/index/index.jsx | 11 ++++++++--- src/pages/index/index.scss | 4 ++-- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/config/index.js b/config/index.js index 85924f7..dcc64b9 100644 --- a/config/index.js +++ b/config/index.js @@ -1,3 +1,4 @@ +import path from "path"; const config = { projectName: "cityh5", date: "2023-12-2", @@ -41,6 +42,9 @@ const config = { }, }, }, + alias: { + "@": path.resolve(__dirname, "..", "src"), + }, h5: { webpackChain(chain) { chain.module diff --git a/src/index.html b/src/index.html index 805f74e..c328521 100644 --- a/src/index.html +++ b/src/index.html @@ -63,6 +63,7 @@ +