|
@@ -36,14 +36,8 @@ module.exports = {
|
|
|
proxy: {
|
|
|
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
-
|
|
|
- target: `http://test-sy.derom.com/drp-admin`,
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ target: ` http://172.16.13.77:8000/drp-admin`,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|
|
@@ -111,33 +105,33 @@ module.exports = {
|
|
|
.end()
|
|
|
config
|
|
|
.optimization.splitChunks({
|
|
|
- chunks: 'all',
|
|
|
- cacheGroups: {
|
|
|
- libs: {
|
|
|
- name: 'chunk-libs',
|
|
|
- test: /[\\/]node_modules[\\/]/,
|
|
|
- priority: 10,
|
|
|
- chunks: 'initial'
|
|
|
- },
|
|
|
- elementUI: {
|
|
|
- name: 'chunk-elementUI',
|
|
|
- priority: 20,
|
|
|
- test: /[\\/]node_modules[\\/]_?element-ui(.*)/
|
|
|
- },
|
|
|
- commons: {
|
|
|
- name: 'chunk-commons',
|
|
|
- test: resolve('src/components'),
|
|
|
- minChunks: 3,
|
|
|
- priority: 5,
|
|
|
- reuseExistingChunk: true
|
|
|
- }
|
|
|
+ chunks: 'all',
|
|
|
+ cacheGroups: {
|
|
|
+ libs: {
|
|
|
+ name: 'chunk-libs',
|
|
|
+ test: /[\\/]node_modules[\\/]/,
|
|
|
+ priority: 10,
|
|
|
+ chunks: 'initial'
|
|
|
+ },
|
|
|
+ elementUI: {
|
|
|
+ name: 'chunk-elementUI',
|
|
|
+ priority: 20,
|
|
|
+ test: /[\\/]node_modules[\\/]_?element-ui(.*)/
|
|
|
+ },
|
|
|
+ commons: {
|
|
|
+ name: 'chunk-commons',
|
|
|
+ test: resolve('src/components'),
|
|
|
+ minChunks: 3,
|
|
|
+ priority: 5,
|
|
|
+ reuseExistingChunk: true
|
|
|
}
|
|
|
- })
|
|
|
+ }
|
|
|
+ })
|
|
|
config.optimization.runtimeChunk('single'),
|
|
|
- {
|
|
|
- from: path.resolve(__dirname, './public/robots.txt'),
|
|
|
- to: './'
|
|
|
- }
|
|
|
+ {
|
|
|
+ from: path.resolve(__dirname, './public/robots.txt'),
|
|
|
+ to: './'
|
|
|
+ }
|
|
|
}
|
|
|
)
|
|
|
}
|