chore(miniprogram): stores 层启用 @/ 路径别名 + webpack alias 配置
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

This commit is contained in:
iven
2026-04-24 12:30:02 +08:00
parent 54a0e393ac
commit 6bb3babcb9
3 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import { defineConfig } from '@tarojs/cli';
import path from 'path';
export default defineConfig(async (merge) => {
const baseConfig = {
@@ -13,6 +14,9 @@ export default defineConfig(async (merge) => {
copy: { patterns: [], options: {} },
framework: 'react',
compiler: 'webpack5',
alias: {
'@': path.resolve(__dirname, '..', 'src'),
},
sass: {
resource: ['src/styles/variables.scss'],
},