| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- module.exports = {
- outputDir:"yos",
- lintOnSave: false,
- productionSourceMap:false,
- publicPath: './',
- chainWebpack: (config) => {
- config.cache({
- type: 'filesystem',
- buildDependencies: {
- config: [__filename],
- },
- });
- },
- configureWebpack: {
- optimization: {
- splitChunks: {
- cacheGroups: {
- 'element-ui': {
- test: /[\\/]node_modules[\\/]element-ui[\\/]/,
- name: 'chunk-element-ui',
- priority: 20,
- chunks: 'all',
- },
- 'antv': {
- test: /[\\/]node_modules[\\/]@antv[\\/]/,
- name: 'chunk-antv',
- priority: 20,
- chunks: 'all',
- },
- 'ant-design-vue': {
- test: /[\\/]node_modules[\\/]ant-design-vue[\\/]/,
- name: 'chunk-antd',
- priority: 20,
- chunks: 'all',
- },
- },
- },
- },
- },
- devServer: {
- headers: {
- 'Access-Control-Allow-Origin': '*',
- },
- open: true,
- host: 'localhost',
- port: 8000,
- proxy: {
- '/apis': {
- target: 'http://61.164.207.46:8000',
- ws: true,
- changeOrigin: true,
- pathRewrite: {
- '^/apis': '',
- },
- },
- }
- }
- }
|