动态地将资产添加到Webpack图-JavaScript开发

时间:2021-05-26 03:59:09
【文件属性】:
文件名称:动态地将资产添加到Webpack图-JavaScript开发
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-26 03:59:09
JavaScript Bundlers add-asset-webpack-plugin将资产动态添加到webpack图中安装$ npm install add-asset-webpack-plugin用法const AddAssetPlugin = require('add-asset-webpack-plugin'); module.expo add-asset-webpack-plugin向Webpack图中动态添加资产安装$ npm install add-asset-webpack-plugin用法const AddAssetPlugin = require('add-asset-webpack-plugin'); module.exports = {//…插件:[new AddAssetPlugin('file.js',`console.log('这是一个动态创建的文件');`)]}; API AddAssetPlugin(filePath,source)filePath类型:字符串资产的相对文件路径。 源类型:字符串| (编译=>字符串| Promise
【文件预览】:
add-asset-webpack-plugin-main
----.gitattributes(19B)
----.github()
--------workflows()
----test.js(686B)
----license(1KB)
----fixture()
--------child-compiler-plugin.js(294B)
--------webpack.config.js(440B)
--------index.js(21B)
----.npmrc(19B)
----.editorconfig(175B)
----.gitignore(23B)
----index.js(840B)
----readme.md(1KB)
----package.json(787B)

网友评论