updated 添加模式文件

This commit is contained in:
PASSER-BY
2022-10-12 01:23:39 +08:00
parent dab145b187
commit 04f6e83799
16 changed files with 123 additions and 159 deletions

View File

@@ -39,3 +39,22 @@ module.exports = {
]
}
};
module.exports = {
mode: 'production',
entry:'./src/relationship-mode.js',
output: {
path: path.resolve(__dirname,'dist'),
filename: 'relationship-mode.min.js',
globalObject: 'this',
library: 'relationshipMode',
libraryTarget: 'umd',
libraryExport:'default'
},
optimization: {
minimizer: [
new TerserJSPlugin({
extractComments: false
}),
]
}
};