Commit d9ae08dc authored by ι™ˆε°θͺ's avatar ι™ˆε°θͺ Committed by ι™ˆεΈ…

πŸ› fix windos class name (#3183)

parent 728457a1
......@@ -3,6 +3,7 @@ import os from 'os';
import pageRoutes from './router.config';
import webpackPlugin from './plugin.config';
import defaultSettings from '../src/defaultSettings';
import slash from 'slash2';
const plugins = [
[
......@@ -97,7 +98,7 @@ export default {
const match = context.resourcePath.match(/src(.*)/);
if (match && match[1]) {
const antdProPath = match[1].replace('.less', '');
const arr = antdProPath
const arr = slash(antdProPath)
.split('/')
.map(a => a.replace(/([A-Z])/g, '-$1'))
.map(a => a.toLowerCase());
......
......@@ -93,7 +93,8 @@
"tslint-react": "^3.6.0",
"umi": "^2.2.7",
"umi-plugin-ga": "^1.1.3",
"umi-plugin-react": "^1.2.0"
"umi-plugin-react": "^1.2.0",
"slash2": "^2.0.0"
},
"optionalDependencies": {
"puppeteer": "^1.10.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