Skip to content

Commit 1986613

Browse files
authored
docs: dumi use alias (#350)
1 parent 8bed0f5 commit 1986613

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.umirc.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ export default defineConfig({
1414
}
1515
`,
1616
],
17+
alias: {
18+
'rc-util/es': process.cwd() + '/src',
19+
},
1720
});

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
"scripts": {
2323
"compile": "father build",
2424
"coverage": "father test --coverage && cat ./coverage/lcov.info | coveralls",
25-
"docs:build": "npm run compile && dumi build",
25+
"docs:build": "dumi build",
2626
"lint": "eslint src/ --ext .tsx,.ts & eslint tests/ --ext .js",
2727
"now-build": "npm run docs:build",
2828
"prepublishOnly": "npm run compile && np --yolo --no-publish",
29-
"start": "npm run compile && dumi dev",
29+
"start": "dumi dev",
3030
"test": "father test"
3131
},
3232
"dependencies": {
@@ -60,4 +60,4 @@
6060
"react": ">=16.9.0",
6161
"react-dom": ">=16.9.0"
6262
}
63-
}
63+
}

0 commit comments

Comments
 (0)