Skip to content

Commit a01b777

Browse files
authored
chore: add umd support (#162)
1 parent 9c3fa34 commit a01b777

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
@@ -29,7 +29,7 @@
2929
"docs:deploy": "gh-pages -d .doc",
3030
"compile": "father build",
3131
"gh-pages": "npm run docs:build && npm run docs:deploy",
32-
"prepublishOnly": "npm run compile && np --yolo --no-publish",
32+
"prepublishOnly": "npm run compile && np --yolo --no-publish --any-branch",
3333
"postpublish": "npm run gh-pages",
3434
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
3535
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",

0 commit comments

Comments
 (0)