fix(vant-cli): replace \ to / in path #5431 (#5473)

This commit is contained in:
jczzq
2020-01-05 09:48:49 +08:00
committed by neverland
parent 04f67f16bc
commit 4424b77cbc
5 changed files with 18 additions and 12 deletions
+4
View File
@@ -91,6 +91,10 @@ export function decamelize(str: string, sep = '-') {
.toLowerCase();
}
export function normalizePath(path: string): string {
return path.replace(/\\/g, '/');
}
export function getWebpackConfig(): object {
if (existsSync(WEBPACK_CONFIG_FILE)) {
const config = require(WEBPACK_CONFIG_FILE);