Skip to content

Commit

Permalink
✨ feat: add umd build
Browse files Browse the repository at this point in the history
  • Loading branch information
eternallycyf committed May 5, 2024
1 parent a2b0b11 commit 45ae6f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default defineConfig({
}`,
style,
],
outputPath: 'docs-dist',
devtool: isProd ? false : 'source-map',
clickToComponent: {},
ignoreMomentLocale: true,
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ _roadhog-api-doc
/es
/lib
/server
/docs-dist

# misc
.DS_Store
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
"**/*.less"
],
"main": "lib/index.js",
"unpkg": "dist/index.js",
"module": "es/index.js",
"types": "lib/index.d.ts",
"types": "es/index.d.ts",
"files": [
"lib",
"es"
"es",
"dist"
],
"scripts": {
"build": "father build",
Expand Down

0 comments on commit 45ae6f1

Please sign in to comment.