mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-02-02 19:08:40 +08:00
fix: name of vite mode
support more characters
修复vite模式名称不支持下划线的问题 fixed: #1115
This commit is contained in:
parent
56a966cfbf
commit
9f6822991c
@ -15,6 +15,7 @@
|
|||||||
- 修复`useECharts`的`theme`参数不起作用的问题
|
- 修复`useECharts`的`theme`参数不起作用的问题
|
||||||
- 修复`Token`失效时,按 F5 刷新页面可能会出现页面加载异常的问题
|
- 修复`Token`失效时,按 F5 刷新页面可能会出现页面加载异常的问题
|
||||||
- 修复`useRedo`的不当调用可能会导致重定向`path`异常的问题
|
- 修复`useRedo`的不当调用可能会导致重定向`path`异常的问题
|
||||||
|
- 修复`vite`自定义模式名称不支持下划线的问题
|
||||||
|
|
||||||
## 2.7.1(2021-08-16)
|
## 2.7.1(2021-08-16)
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ export function wrapperEnv(envConf: Recordable): ViteEnv {
|
|||||||
*/
|
*/
|
||||||
function getConfFiles() {
|
function getConfFiles() {
|
||||||
const script = process.env.npm_lifecycle_script;
|
const script = process.env.npm_lifecycle_script;
|
||||||
const reg = new RegExp('--mode ([a-z]+)');
|
const reg = new RegExp('--mode ([a-z_\\d]+)');
|
||||||
const result = reg.exec(script as string) as any;
|
const result = reg.exec(script as string) as any;
|
||||||
if (result) {
|
if (result) {
|
||||||
const mode = result[1] as string;
|
const mode = result[1] as string;
|
||||||
|
Loading…
Reference in New Issue
Block a user