1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- const url = 'http://39.105.58.247:9990'
- const CompressionWebpackPlugin = require('compression-webpack-plugin')
- const productionGzipExtensions = ['js', 'css']
- module.exports = {
- lintOnSave: true,
- productionSourceMap: false,
- chainWebpack: config => {
-
- config.externals({
- 'axios': 'axios'
- })
- const entry = config.entry('app')
- entry
- .add('babel-polyfill')
- .end()
- entry
- .add('classlist-polyfill')
- .end()
- },
-
- configureWebpack: (config) => {
- if (process.env.NODE_ENV === 'production') {
-
-
-
-
-
-
-
-
-
-
-
-
- }
- },
-
- devServer: {
- disableHostCheck: true,
- port: 8080,
- proxy: {
- '/': {
- target: url,
- ws: false,
- pathRewrite: {
- '^/': '/'
- }
- }
-
- }
- }
- }
|