Commit 7c6c9354 authored by 前端-许佳敏's avatar 前端-许佳敏

chore: 引入大小写敏感检测插件

parent a4481998
......@@ -2,6 +2,7 @@ import { defineConfig } from 'umi';
import routes from './router';
import proxy from './proxy';
import theme from './lingxi.theme.config';
import CaseSensitivePathsWebpackPlugins from 'case-sensitive-paths-webpack-plugin'
const OPEN_THEME_BUILD = process.env.NODE_ENV === 'production' ? true : false; // 是否开启动态主题
const isProduction = process.env.NODE_ENV === 'production' ? true : false;
......@@ -84,6 +85,7 @@ const config: any = {
inlineLimit: 10000,
chunks: isProduction && ['vendors', 'umi'],
chainWebpack: function(config, { webpack }) {
config.plugin('case-sensitive-paths-webpack-plugin').use(CaseSensitivePathsWebpackPlugins)
config.module
.rule('svg')
.exclude.add(/pages/)
......
......@@ -114,6 +114,7 @@
"axios": "^0.19.2",
"babel-plugin-import": "^1.13.3",
"babel-plugin-transform-remove-console": "^6.9.4",
"case-sensitive-paths-webpack-plugin": "^2.4.0",
"chalk": "^4.1.0",
"clone": "^2.1.2",
"compression-webpack-plugin": "^9.0.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment