2 changed files with 48 additions and 0 deletions
@ -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, |
|||
}; |
|||
@ -0,0 +1,19 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
|
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|||
<title>Ant Design Pro</title> |
|||
<link rel="icon" href="/favicon.png" type="image/x-icon"> |
|||
</script> |
|||
<script src=" https://gw.alipayobjects.com/os/rmsportal/TKSqiyoUxzrHoMwjViwA.js "></script> |
|||
<script src="https://gw.alipayobjects.com/os/antv/assets/data-set/0.8.7/data-set.min.js"></script> |
|||
</head> |
|||
|
|||
<body> |
|||
<div id="root"></div> |
|||
</body> |
|||
|
|||
</html> |
|||
Loading…
Reference in new issue