Skip to content

Commit 3ddec84

Browse files
author
苗园园
committed
fix(fix css): fix css
fix css fix css
1 parent bba35aa commit 3ddec84

File tree

4 files changed

+597
-28
lines changed

4 files changed

+597
-28
lines changed

config-overrides.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { injectBabelPlugin } = require('react-app-rewired');
22
const rewireLess = require('react-app-rewire-less');
33

44
module.exports = function override(config, env) {
5-
// do stuff with the webpack config...
5+
// 自定义配置哦...
66
config = injectBabelPlugin(['import', { libraryName: 'antd', style: true }], config);
77
config = rewireLess.withLoaderOptions({
88
modifyVars: { "@primary-color": "#1DA57A" },

package.json

+17-16
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,23 @@
55
"dependencies": {
66
"6": "^0.0.1",
77
"antd": "^3.1.6",
8-
"autoprefixer": "7.1.6",
8+
"autoprefixer": "^7.2.5",
99
"babel-core": "6.26.0",
1010
"babel-eslint": "7.2.3",
1111
"babel-jest": "20.0.3",
1212
"babel-loader": "7.1.2",
13+
"babel-plugin-dynamic-import-node": "1.1.0",
14+
"babel-plugin-syntax-dynamic-import": "6.18.0",
1315
"babel-plugin-transform-class-properties": "^6.24.1",
1416
"babel-plugin-transform-decorators": "^6.24.1",
17+
"babel-plugin-transform-es2015-destructuring": "6.23.0",
18+
"babel-plugin-transform-object-rest-spread": "6.26.0",
19+
"babel-plugin-transform-react-constant-elements": "6.23.0",
20+
"babel-plugin-transform-react-jsx": "6.24.1",
21+
"babel-plugin-transform-react-jsx-self": "6.22.0",
22+
"babel-plugin-transform-react-jsx-source": "6.22.0",
23+
"babel-plugin-transform-regenerator": "6.26.0",
24+
"babel-plugin-transform-runtime": "6.23.0",
1525
"babel-polyfill": "^6.26.0",
1626
"babel-preset-env": "^1.6.1",
1727
"babel-preset-es2015": "^6.24.1",
@@ -39,11 +49,15 @@
3949
"history": "^4.7.2",
4050
"html-webpack-plugin": "2.29.0",
4151
"jest": "20.0.4",
52+
"lost": "^8.2.0",
4253
"node-sass-chokidar": "^0.0.3",
4354
"npm-run-all": "^4.1.2",
4455
"object-assign": "4.1.1",
56+
"postcss-cssnext": "^3.1.0",
4557
"postcss-flexbugs-fixes": "3.2.0",
46-
"postcss-loader": "2.0.8",
58+
"postcss-loader": "^2.1.0",
59+
"postcss-smart-import": "^0.7.6",
60+
"precss": "^3.1.0",
4761
"promise": "8.0.1",
4862
"raf": "3.4.0",
4963
"react": "^16.2.0",
@@ -65,17 +79,7 @@
6579
"webpack": "3.8.1",
6680
"webpack-dev-server": "2.9.4",
6781
"webpack-manifest-plugin": "1.3.2",
68-
"whatwg-fetch": "2.0.3",
69-
"babel-plugin-dynamic-import-node": "1.1.0",
70-
"babel-plugin-syntax-dynamic-import": "6.18.0",
71-
"babel-plugin-transform-es2015-destructuring": "6.23.0",
72-
"babel-plugin-transform-object-rest-spread": "6.26.0",
73-
"babel-plugin-transform-react-constant-elements": "6.23.0",
74-
"babel-plugin-transform-react-jsx": "6.24.1",
75-
"babel-plugin-transform-react-jsx-self": "6.22.0",
76-
"babel-plugin-transform-react-jsx-source": "6.22.0",
77-
"babel-plugin-transform-regenerator": "6.26.0",
78-
"babel-plugin-transform-runtime": "6.23.0"
82+
"whatwg-fetch": "2.0.3"
7983
},
8084
"scripts": {
8185
"build-css": "node-sass-chokidar src/ -o src/",
@@ -100,9 +104,6 @@
100104
"react-app-rewire-less": "^2.1.0",
101105
"react-app-rewired": "^1.4.1"
102106
},
103-
"theme": {
104-
"primary-color": "#1DA57A"
105-
},
106107
"jest": {
107108
"collectCoverageFrom": [
108109
"src/**/*.{js,jsx,mjs}"

src/components/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export { BaseTitle } from './BaseTitle/BaseTitle';
2-
32
export { Nav } from './Nav/Nav';

0 commit comments

Comments
 (0)