mirror of
https://github.com/simon987/sist2.git
synced 2025-12-13 15:29:04 +00:00
Rework user scripts, update DB schema to support embeddings
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
const TerserPlugin = require("terser-webpack-plugin");
|
||||
|
||||
module.exports = {
|
||||
filenameHashing: false,
|
||||
productionSourceMap: false,
|
||||
@@ -6,5 +8,19 @@ module.exports = {
|
||||
index: {
|
||||
entry: "src/main.js"
|
||||
}
|
||||
},
|
||||
configureWebpack: config => {
|
||||
config.optimization.minimizer = [new TerserPlugin({
|
||||
terserOptions: {
|
||||
compress: {
|
||||
passes: 2,
|
||||
module: true,
|
||||
hoist_funs: true,
|
||||
// https://github.com/microsoft/onnxruntime/issues/16984
|
||||
unused: false,
|
||||
},
|
||||
mangle: true,
|
||||
}
|
||||
})]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user