mirror of
https://github.com/dromara/tianai-captcha.git
synced 2026-05-25 03:42:42 +08:00
重构系统项目结构, 将 tianai-captcha
tianai-captcha-springboot-starter tianai-captcha-web-sdk tianai-captcha-solon-plugin 整合到一块
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const path = require("path");
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
module.exports = {
|
||||
optimization: {
|
||||
minimize: true,
|
||||
minimizer: [new TerserPlugin({
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true, // 移除所有的`console`语句
|
||||
},
|
||||
output: {
|
||||
comments: false, // 去掉注释
|
||||
},
|
||||
},
|
||||
extractComments: false, // 是否将注释提取到单独的文件中
|
||||
})],
|
||||
},
|
||||
externals: {
|
||||
},
|
||||
output: {
|
||||
filename: "tac/js/tac.min.js",
|
||||
path: path.resolve(__dirname, "./dist")
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
filename: 'index.html',
|
||||
template: './public/index-prod.html'
|
||||
})
|
||||
]
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user