Skip to content

Commit 4d4413a

Browse files
committed
chore: add umd support (#162)
1 parent 862a520 commit 4d4413a

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.fatherrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ import { defineConfig } from 'father';
22

33
export default defineConfig({
44
plugins: ['@rc-component/father-plugin'],
5+
umd: {
6+
name: 'antdCssinjs',
7+
},
58
});

dist/umd/cssinjs.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"docs:deploy": "gh-pages -d .doc",
3131
"compile": "father build",
3232
"gh-pages": "npm run docs:build && npm run docs:deploy",
33-
"prepublishOnly": "npm run compile && np --yolo --no-publish",
33+
"prepublishOnly": "npm run compile && np --yolo --no-publish --any-branch",
3434
"postpublish": "npm run gh-pages",
3535
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
3636
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",

0 commit comments

Comments
 (0)