cmc-web/build/utils.js

19 lines
518 B
JavaScript

/*
* @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`))
})
});
}