cmc-web/build/utils.js

20 lines
519 B
JavaScript
Raw Normal View History

2024-08-20 12:11:31 +00:00
/*
* @Author: Haijun Zhang
* @Date: 2022-11-09 11:26:04
* @LastEditTime: 2022-11-15 15:55:34
* @LastEditors: Haijun Zhang
2024-08-21 01:17:14 +00:00
* @Description:
2024-08-20 12:11:31 +00:00
* @FilePath: \cmc-web\build\utils.js
*/
const path = require('path')
const webpack = require('webpack')
2024-08-21 01:17:14 +00:00
exports.getDllPlugins = function () {
2024-08-20 12:11:31 +00:00
return ['vendor', 'element'].map(item => {
return new webpack.DllReferencePlugin({
context: path.resolve(__dirname, '../'),
manifest: require(path.resolve(__dirname, `../dll/${item}-manifest.json`))
})
2024-08-21 01:17:14 +00:00
})
}