-
add-asset-webpack-plugin能够实现将资产动态地添加到Webpack构建图中
资源介绍
附加资产webpack插件
动态地将资产添加到图
安装
$ npm install add-asset-webpack-plugin
用法
const AddAssetPlugin = require ( 'add-asset-webpack-plugin' ) ;
module . exports = {
// …
plugins : [
new AddAssetPlugin ( 'file.js' , `
console.log('This is a dynamically created file');
` )
]
} ;
API
AddAssetPlugin(fil