chore: upgrade deps
This commit is contained in:
parent
289dd01cbf
commit
7c3564124e
3 changed files with 309 additions and 336 deletions
|
@ -36,7 +36,7 @@
|
||||||
"chart.js": "^2.7.3",
|
"chart.js": "^2.7.3",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"history": "^4.7.2",
|
"history": "^4.7.2",
|
||||||
"memoize-one": "^4.0.3",
|
"memoize-one": "^5.0.0",
|
||||||
"modern-normalize": "^0.5.0",
|
"modern-normalize": "^0.5.0",
|
||||||
"prop-types": "^15.5.10",
|
"prop-types": "^15.5.10",
|
||||||
"react": "^16.7.0-alpha.2",
|
"react": "^16.7.0-alpha.2",
|
||||||
|
@ -63,10 +63,10 @@
|
||||||
"@babel/plugin-transform-runtime": "^7.1.0",
|
"@babel/plugin-transform-runtime": "^7.1.0",
|
||||||
"@babel/preset-env": "^7.1.5",
|
"@babel/preset-env": "^7.1.5",
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.0.0",
|
||||||
"autoprefixer": "9.3.1",
|
"autoprefixer": "^9.4.3",
|
||||||
"babel-eslint": "^10.0.1",
|
"babel-eslint": "^10.0.1",
|
||||||
"babel-loader": "^8.0.4",
|
"babel-loader": "^8.0.4",
|
||||||
"css-loader": "^1.0.0",
|
"css-loader": "^2.0.1",
|
||||||
"cssnano": "^4.1.7",
|
"cssnano": "^4.1.7",
|
||||||
"eslint": "^5.7.0",
|
"eslint": "^5.7.0",
|
||||||
"eslint-import-resolver-webpack": "^0.10.1",
|
"eslint-import-resolver-webpack": "^0.10.1",
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
"html-webpack-plugin": "^3.2.0",
|
"html-webpack-plugin": "^3.2.0",
|
||||||
"husky": "^1.0.1",
|
"husky": "^1.0.1",
|
||||||
"lint-staged": "^8.0.2",
|
"lint-staged": "^8.0.2",
|
||||||
"mini-css-extract-plugin": "^0.4.3",
|
"mini-css-extract-plugin": "^0.5.0",
|
||||||
"node-sass": "^4.10.0",
|
"node-sass": "^4.10.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss-loader": "^3.0.0",
|
"postcss-loader": "^3.0.0",
|
||||||
|
|
|
@ -53,19 +53,17 @@ const cssExtractPlugin = new MiniCssExtractPlugin({
|
||||||
const LOCAL_IDENT_NAME_DEV = '[path]---[name]---[local]---[hash:base64:5]';
|
const LOCAL_IDENT_NAME_DEV = '[path]---[name]---[local]---[hash:base64:5]';
|
||||||
const LOCAL_IDENT_NAME_PROD = '[hash:base64:10]';
|
const LOCAL_IDENT_NAME_PROD = '[hash:base64:10]';
|
||||||
const localIdentName = isDev ? LOCAL_IDENT_NAME_DEV : LOCAL_IDENT_NAME_PROD;
|
const localIdentName = isDev ? LOCAL_IDENT_NAME_DEV : LOCAL_IDENT_NAME_PROD;
|
||||||
const getCssLoaderOptions = (opt = {}) => ({
|
|
||||||
minimize: true,
|
|
||||||
localIdentName,
|
|
||||||
...opt
|
|
||||||
});
|
|
||||||
|
|
||||||
const cssnano = require('cssnano');
|
const cssnano = require('cssnano');
|
||||||
const loaders = {
|
const loaders = {
|
||||||
style: { loader: 'style-loader' },
|
style: { loader: 'style-loader' },
|
||||||
css: { loader: 'css-loader', options: getCssLoaderOptions() },
|
css: { loader: 'css-loader' },
|
||||||
cssModule: {
|
cssModule: {
|
||||||
loader: 'css-loader',
|
loader: 'css-loader',
|
||||||
options: getCssLoaderOptions({ modules: true })
|
options: {
|
||||||
|
modules: true,
|
||||||
|
localIdentName
|
||||||
|
}
|
||||||
},
|
},
|
||||||
postcss: {
|
postcss: {
|
||||||
loader: 'postcss-loader',
|
loader: 'postcss-loader',
|
||||||
|
|
Loading…
Reference in a new issue