first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
const isProduction = process.env.NODE_ENV === 'production';
const ProdConfig = require("./build/prod");
const DevConfig = require("./build/dev");
const VariableConfig = require('./build/variable');
module.exports = {
publicPath: './',
filenameHashing: true,
productionSourceMap: false,
parallel: require('os').cpus().length > 1,
lintOnSave: false,
/**
* vue-cli-plugin-autorouter 插件配置
* 参考文档https://www.npmjs.com/package/vue-cli-plugin-autorouter
*/
pluginOptions: {
route: {
TemplateFolderName: 'page',
RootFolderName: './src/application',
SaveConfigPath: '../../../src/core/config/route.config.ts'
}
},
devServer: {
hot: true,
hotOnly: true,
host: '0.0.0.0',
port: 9090,
compress: true,
open: true,
openPage: '#/',
overlay: {
warnings: true,
errors: true,
}
},
configureWebpack: (config) => {
// 设置程序核心入口
config.entry.app = './src/core/run/index.run.ts';
isProduction ? new ProdConfig(config) : ''
},
chainWebpack: (config) => {
isProduction ? config.plugin('html').tap(args => {
args[0].cdn = VariableConfig.cdn;
return args;
}) : '';
new DevConfig(config);
}
};