Skip to content

Commit

Permalink
feat: use postcss
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Jul 8, 2021
1 parent a1a4dea commit 2011f93
Show file tree
Hide file tree
Showing 12 changed files with 213 additions and 133 deletions.
1 change: 0 additions & 1 deletion global.d.ts

This file was deleted.

11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"files": [
"dist"
],
"exports": {
".": {
"import": "./dist/index.es.js",
"require": "./dist/index.umd.js"
}
},
"repository": "https://github.com/hemengke1997/useATRH",
"keywords": [
"react",
Expand All @@ -34,21 +40,24 @@
},
"dependencies": {
"classnames": "^2.3.1",
"lodash.throttle": "^4.1.1",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-resizable": "^3.0.4"
},
"devDependencies": {
"@types/lodash.throttle": "^4.1.6",
"@types/node": "^16.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-resizable": "^1.7.2",
"@umijs/fabric": "^2.6.2",
"@vitejs/plugin-react-refresh": "^1.3.1",
"autoprefixer": "^10.2.6",
"eslint": "^7.30.0",
"husky": "^7.0.1",
"less": "^4.1.1",
"lint-staged": "^11.0.0",
"postcss-nesting": "^8.0.1",
"prettier": "^2.3.2",
"rollup-plugin-typescript2": "^0.30.0",
"typescript": "^4.1.2",
Expand Down
148 changes: 48 additions & 100 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* eslint-disable global-require */
module.exports = {
plugins: [
require('postcss-nesting'),
require('autoprefixer')({ overrideBrowserslist: ['> 0.15% in CN'] }),
],
};
Loading

0 comments on commit 2011f93

Please sign in to comment.