Commit 5d716dc4 authored by GuanHua's avatar GuanHua
parents af865ff5 77ee8364
...@@ -5,29 +5,29 @@ import AntdDayjsWebpackPlugin from 'antd-dayjs-webpack-plugin' ...@@ -5,29 +5,29 @@ import AntdDayjsWebpackPlugin from 'antd-dayjs-webpack-plugin'
export default defineConfig({ export default defineConfig({
devtool: false, devtool: false,
externals: { // externals: {
"react": 'React', // "react": 'React',
"react-dom": 'ReactDOM', // "react-dom": 'ReactDOM',
"@antv/g2": 'G2', // "@antv/g2": 'G2',
"@antv/data-set": 'DataSet', // "@antv/data-set": 'DataSet',
bizcharts: 'BizCharts', // bizcharts: 'BizCharts',
"lingxi-design-ui": 'LingXiUI', // "lingxi-design-ui": 'LingXiUI',
// "@formily/antd-components": 'FormilyComponent', // // "@formily/antd-components": 'FormilyComponent',
"@lingxi-design/ui": 'LingxiDesignUI', // "@lingxi-design/ui": 'LingxiDesignUI',
// 对antd的组件做一个远程映射 // // 对antd的组件做一个远程映射
...ExternalsAntd // ...ExternalsAntd
}, // },
scripts: [ // scripts: [
'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/react.production.min.js', // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/react.production.min.js',
'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/react-dom.production.min.js', // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/react-dom.production.min.js',
'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/g2.min.js', // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/g2.min.js',
'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/data-set.js', // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/data-set.js',
'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/BizCharts.min.js', // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/BizCharts.min.js',
'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/LingXiUI.min.js', // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/LingXiUI.min.js',
'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/antd.min.js', // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/antd.min.js',
// 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/formily-component.min.js', // // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/formily-component.min.js',
'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/lingxi-design-ui.min.js', // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/lingxi-design-ui.min.js',
], // ],
chainWebpack(config) { chainWebpack(config) {
config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin) config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin)
// config.plugin('lodash-webpack-plugin').use(LodashModuleReplacementPlugin) // config.plugin('lodash-webpack-plugin').use(LodashModuleReplacementPlugin)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment