12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- module.exports = {
-
- publicPath: "./",
- lintOnSave: true,
- productionSourceMap: false,
- chainWebpack: (config) => {
-
- config.externals({
- 'vue': 'Vue',
- 'vue-router': 'VueRouter',
- 'vuex': 'Vuex',
- 'axios': 'axios',
- 'element-ui': 'ELEMENT',
- });
- const entry = config.entry('app');
- entry.add('babel-polyfill').end();
- entry.add('classlist-polyfill').end();
- entry.add('@/mock').end();
- },
- css: {
- extract: { ignoreOrder: true }
- },
-
- devServer: {
- port: 1888,
- proxy: {
- '/api': {
-
- target: 'http://127.0.0.1:8802',
-
-
-
-
-
-
- ws: true,
- pathRewrite: {
- '^/api': ''
- }
- }
- }
- }
- };
|