-
yyl-concat-webpack-plugin是一款用于concat操作的webpack插件
资源介绍
yyl-concat-webpack-plugin
用法
插入
const YylConcatWebpackPlugin = require ( 'yyl-concat-webpack-plugin' )
const wConfig = {
plugins : [
new YylConcatWebpackPlugin ( {
fileMap : {
'dist/assets/js/vendors.js' : [ 'src/js/a.js' , 'src/js/b.js' ]
} ,
uglify : false ,
logBasePath : process . cwd ( ) ,
fileName : '[name]-[hash:8].[ext]'
} )
]
}
钩子
例子
let Yy