cmc-web/build/utils.js

19 lines
518 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
* @Description:
* @FilePath: \cmc-web\build\utils.js
*/
const path = require('path')
const webpack = require('webpack')
exports.getDllPlugins = function(){
return ['vendor', 'element'].map(item => {
return new webpack.DllReferencePlugin({
context: path.resolve(__dirname, '../'),
manifest: require(path.resolve(__dirname, `../dll/${item}-manifest.json`))
})
});
}