Package Exports
- generate-json-webpack-plugin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generate-json-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
generate-json-webpack-plugin
Webpack plugin to generate a custom JSON asset
Installation
npm install generate-json-webpack-plugin
Usage
// webpack.config.js
const GenerateJsonPlugin = require('generate-json-webpack-plugin');
module.exports = {
// ...
plugins: [
// ...
new GenerateJsonPlugin('my-file.json', {
foo: 'bar'
})
]
// ...
};
This will create a file my-file.json
in webpack's output directory, with contents:
{"foo":"bar"}