优化buyer端配置信息完善性

This commit is contained in:
lemon橪
2021-11-18 17:10:44 +08:00
parent 1ac5dcfe25
commit 6c6b89f512
12 changed files with 21 additions and 30 deletions

View File

@@ -4,6 +4,7 @@ const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const resolve = dir => {
return path.join(__dirname, dir);
};
const configs = require('./src/config')
/**
* 在项目开发的时候将生产环境以及开发环境进行判断
* 将生产环境中的路径用cdn来进行优化处理
@@ -128,6 +129,7 @@ module.exports = {
config.resolve.alias.set("@", resolve("src"));
config.plugin("html").tap(args => {
args[0].cdn = cdn;
args[0].title = configs.title;
return args;
});
}