emit-json-file-webpack-plugin:在Webpack构建过程中从JavaScript对象创建json文件

时间:2021-05-18 14:07:53
【文件属性】:
文件名称:emit-json-file-webpack-plugin:在Webpack构建过程中从JavaScript对象创建json文件
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-18 14:07:53
JavaScript Emit Json-File Webpack插件 在Webpack构建过程中,从JavaScript对象创建json文件。 安装 npm i -D emit-json-file-webpack-plugin 用法 new EmitJsonFileWebpackPlugin([files]) 文件看起来像: { path: 'filePath', content: 'object' } 名称 细节 path 该文件路径将在输出目录中创建例如: “ folder / file.txt” content JavaScript对象将被格式化为JSON。 插件内部使用格式化对象。 例子 const EmitJsonFileWebpackPlugin = require ( 'emit-json-file-webpack-plugin' ) const fileContent = {
【文件预览】:
emit-json-file-webpack-plugin-master
----index.js(883B)
----package.json(731B)
----LICENSE(1KB)
----package-lock.json(329B)
----.gitignore(884B)
----README.md(1KB)

网友评论