fix(vant-cli): fix Windows system build style problems (#5655)

This commit is contained in:
yinhui1129754
2020-02-14 14:37:19 +08:00
committed by GitHub
parent 9371bc06c8
commit 1d8e2654f5
3 changed files with 9 additions and 10 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import { join } from 'path';
import { sep, join } from 'path';
import {
lstatSync,
existsSync,
@@ -15,8 +15,8 @@ import {
export const EXT_REGEXP = /\.\w+$/;
export const SFC_REGEXP = /\.(vue)$/;
export const DEMO_REGEXP = /\/demo$/;
export const TEST_REGEXP = /\/test$/;
export const DEMO_REGEXP = new RegExp('\\' + sep + 'demo$');
export const TEST_REGEXP = new RegExp('\\' + sep + 'test$');
export const STYLE_REGEXP = /\.(css|less|scss)$/;
export const SCRIPT_REGEXP = /\.(js|ts|jsx|tsx)$/;
export const ENTRY_EXTS = ['js', 'ts', 'tsx', 'jsx', 'vue'];