first commit

This commit is contained in:
2026-03-06 14:01:32 +08:00
commit def60e21c7
1074 changed files with 119423 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
// 判断开发环境
// const isProduction = process.env.NODE_ENV === 'production'
module.exports = {
publicPath: '/ops/',
// 打包时不生成.map文件
productionSourceMap: false,
devServer: {
port: 10010,
proxy: {
'/orion': {
target: 'http://localhost:9119',
ws: true,
secure: false,
changeOrigin: true
}
}
},
transpileDependencies: true
// configureWebpack: config => {
// if (isProduction) {
// // 开启分离js
// config.optimization = {
// runtimeChunk: 'single',
// splitChunks: {
// chunks: 'all',
// maxInitialRequests: Infinity,
// minSize: 20000,
// cacheGroups: {
// vendor: {
// test: /[\\/]node_modules[\\/]/,
// name(module) {
// const packageName = module.context.match(/[\\/]node_modules[\\/](.*?)([\\/]|$)/)[1]
// return `pkg.${packageName.replace('@', '')}`
// }
// }
// }
// }
// }
// }
// }
}