|
@@ -92,24 +92,6 @@ module.exports = defineConfig({
|
|
|
return options
|
|
|
})
|
|
|
})
|
|
|
- // config.plugin('generate-version-file').use({
|
|
|
- // apply: (compiler) => {
|
|
|
- // // 生成当前时间戳
|
|
|
- // // const timestamp = Date.now()
|
|
|
-
|
|
|
- // // 构造 version.json 内容
|
|
|
-
|
|
|
- // const versionData = {
|
|
|
- // version: Timestamp
|
|
|
- // }
|
|
|
-
|
|
|
- // // 写入 version.json 文件
|
|
|
- // if (process.env.NODE_ENV === 'production') {
|
|
|
- // fs.writeFileSync('./public/version.json', JSON.stringify(versionData, null, 2))
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
- // config.output.chunkFilename('js/[name].[contenthash].js').end()
|
|
|
},
|
|
|
// babel-loader 是否处理 node_modules 中的依赖包,处理哪些依赖包,参数类型: boolean | Array<string | RegExp>
|
|
|
transpileDependencies: [
|