diff --git a/.webpackrc.js b/.webpackrc.js new file mode 100755 index 0000000000000000000000000000000000000000..cf91d6d69ef834a5671e36c8e32ed0c711cf4313 --- /dev/null +++ b/.webpackrc.js @@ -0,0 +1,29 @@ +const path = require('path'); + +export default { + entry: 'src/index.js', + extraBabelPlugins: [['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }]], + env: { + development: { + extraBabelPlugins: ['dva-hmr'], + }, + }, + externals: { + '@antv/data-set': 'DataSet', + rollbar: 'rollbar', + }, + alias: { + components: path.resolve(__dirname, 'src/components/'), + }, + ignoreMomentLocale: true, + theme: './src/theme.js', + html: { + template: './src/index.ejs', + }, + lessLoaderOptions: { + javascriptEnabled: true, + }, + disableDynamicImport: true, + publicPath: '/', + hash: true, +}; diff --git a/src/index.ejs b/src/index.ejs new file mode 100644 index 0000000000000000000000000000000000000000..6d0be3b725b104132a186e3a3613393445ae3683 --- /dev/null +++ b/src/index.ejs @@ -0,0 +1,19 @@ + + + + + + + + Ant Design Pro + + + + + + + +
+ + + \ No newline at end of file