12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- const url = 'http://127.0.0.1:9998'
- let publicPath = './'
- module.exports = {
- publicPath: publicPath,
- lintOnSave: true,
- productionSourceMap: false,
- css: {
-
- extract: { ignoreOrder: true }
- },
- chainWebpack: config => {
- const entry = config.entry('app')
- entry
- .add('babel-polyfill')
- .end()
- entry
- .add('classlist-polyfill')
- .end()
- },
- configureWebpack: config => {
-
- if (process.env.NODE_ENV === 'production') {
- config.mode = 'production';
-
- config.performance = {
- maxEntrypointSize: 10000000,
- maxAssetSize: 30000000
- }
- }
- },
-
- devServer: {
- proxy: {
- '/': {
- target: url,
- ws: true,
- pathRewrite: {
- '^/': '/'
- }
- }
- }
- }
- }
|