12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- const fs = require('fs');
- const name = dist;
- publicPath = process.env.NODE_ENV === "development" ? "/" : `/${name}`;
- module.exports = {
- publicPath: publicPath,
- outputDir: name,
-
- productionSourceMap: false,
- lintOnSave: false,
- css: {
- loaderOptions: {
- less: {
- javascriptEnabled: true,
- },
- },
- },
- devServer: {
- historyApiFallback: {
-
- },
- port: 9906,
- proxy: {
- "/duoduo-service": {
- target: "http://api.sagacloud.cn",
- changeOrigin: true,
- secure: false,
- }
- }
- },
- chainWebpack: (config) => {
-
-
-
-
-
-
-
-
-
- },
- };
|