123456789101112131415161718192021222324252627282930313233343536373839 |
- const path = require("path");
- const Version = new Date().getTime();
- module.exports = {
-
- configureWebpack: {
-
- devServer: {
- "port": 8080,
-
- disableHostCheck: true,
- "proxy": {
- "/api": {
-
-
- "target": "https://zbs.xueyousuohuo.cn/api",
-
- "changeOrigin": true,
- "secure": false,
- "pathRewrite": {
- "^/api": ""
- }
- }
- }
- },
-
-
- },
- productionSourceMap: true,
- chainWebpack: config => {
- config.output.filename('[name].[hash].' + Version + '.js').end();
- }
- }
|