From 70448f06b6c7234fc87aae5c750520ead8acaf8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 22 Jun 2018 18:58:20 +0800 Subject: [PATCH] externals bizcharts dataset and rollbar --- .webpackrc.js | 9 ++++++--- src/index.ejs | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.webpackrc.js b/.webpackrc.js index ce65d311..e0bedf69 100755 --- a/.webpackrc.js +++ b/.webpackrc.js @@ -2,14 +2,17 @@ const path = require('path'); export default { entry: 'src/index.js', - extraBabelPlugins: [ - ['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }], - ], + extraBabelPlugins: [['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }]], env: { development: { extraBabelPlugins: ['dva-hmr'], }, }, + externals: { + '@antv/data-set': 'DataSet', + bizcharts: 'BizCharts', + rollbar: 'rollbar', + }, alias: { components: path.resolve(__dirname, 'src/components/'), }, diff --git a/src/index.ejs b/src/index.ejs index 586f62e8..777b30ee 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -7,6 +7,10 @@ Ant Design Pro + + + -- GitLab