From 5ec7dcf6ef2878ea35be268f4c89028a8de1119f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 15 Jun 2018 21:50:43 +0800 Subject: [PATCH] add css and less configuration --- .webpackrc.js | 3 +++ package.json | 3 +-- src/components/Charts/MiniArea/index.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.webpackrc.js b/.webpackrc.js index 2722109c..da3cc37c 100755 --- a/.webpackrc.js +++ b/.webpackrc.js @@ -28,6 +28,9 @@ export default { publicPath: '/', disableDynamicImport: true, hash: true, + lessLoaderOptions: { + javascriptEnabled: true, + }, cssLoaderOptions: { modules: true, getLocalIdent: (context, localIdentName, localName) => { diff --git a/package.json b/package.json index 7bc53e66..42afd631 100755 --- a/package.json +++ b/package.json @@ -24,13 +24,12 @@ "dependencies": { "@antv/data-set": "^0.8.0", "antd": "^3.6.2", - "bizcharts": "^3.1.5", + "bizcharts": "^3.1.8", "bizcharts-plugin-slider": "^2.0.3", "classnames": "^2.2.6", "dva": "^2.3.1", "dva-loading": "^2.0.3", "enquire-js": "^0.2.1", - "less": "2.7.2", "lodash": "^4.17.4", "lodash-decorators": "^5.0.1", "moment": "^2.22.0", diff --git a/src/components/Charts/MiniArea/index.js b/src/components/Charts/MiniArea/index.js index a5526a95..151fdd1c 100644 --- a/src/components/Charts/MiniArea/index.js +++ b/src/components/Charts/MiniArea/index.js @@ -4,7 +4,7 @@ import autoHeight from '../autoHeight'; import styles from '../index.less'; @autoHeight() -export default class MiniArea extends React.Component { +export default class MiniArea extends React.PureComponent { render() { const { height, -- GitLab