Commit 7e130729 by liguokang

feat: 🎨

parent 274c6545
/*
* @Author: liguokang
* @Date: 2021-07-29 16:19:43
* @LastEditors: liguokang
* @LastEditTime: 2021-07-29 16:37:35
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
const DEPLOY_ENV = process.env.DEPLOY_ENV;
console.log(DEPLOY_ENV, '@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@');
const webDomain = {
dev: 'https://dev.xiaomai5.com/',
rc: 'https://rc.xiaomai5.com/',
gray: 'https://rc.xiaomai5.com/',
prod: 'https://www.xiaomai5.com/',
};
const apiDomain = {
dev: 'https://dev-heimdall.xiaomai5.com/',
rc: 'https://rc-heimdall.xiaomai5.com/',
gray: 'https://gray-heimdall.xiaomai5.com/',
prod: 'https://heimdall.xiaomai5.com/',
};
exports.DOMAIN = {
webDomain: webDomain[DEPLOY_ENV],
apiDomain: apiDomain[DEPLOY_ENV],
};
......@@ -2,7 +2,7 @@
* @Author: liguokang
* @Date: 2021-07-14 20:36:28
* @LastEditors: liguokang
* @LastEditTime: 2021-07-29 16:05:28
* @LastEditTime: 2021-07-29 16:34:27
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
......@@ -33,6 +33,7 @@ module.exports = withLessExcludeAntd({
config.resolve.alias['@'] = path.join(__dirname, 'common');
config.resolve.alias['components'] = path.join(__dirname, 'components');
config.resolve.alias['static'] = path.join(__dirname, 'static');
config.plugins.push(
new webpack.DefinePlugin({
'process.env': {
......
......@@ -2,15 +2,20 @@
* @Author: liguokang
* @Date: 2021-07-29 16:14:30
* @LastEditors: liguokang
* @LastEditTime: 2021-07-29 16:16:46
* @Description:
* @LastEditTime: 2021-07-29 16:37:00
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
const fs = require('fs');
const webConfigs = require('./common/webConfigs');
const readStream = fs.createReadStream('./sitemap/sitemap.html', { encoding: 'utf8' });
const writeStream = fs.createWriteStream('./dist/sitemap.html', { encoding: 'utf8' });
console.log(webConfigs, '11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111');
console.log(process.env.DEPLOY_ENV);
let env = {
dev: 'https://dev.xiaomai5.com/',
rc: 'https://rc.xiaomai5.com/',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment