1.0.7 • Published 6 years ago
extract-metadata-webpack-plugin v1.0.7
extract-metadata-webpack-plugin
This plugin does the same as react-docgen, but faster.
How to install
With NPM:
npm i extract-metadata-webpack-plugin --save-devWith Yarn:
yarn add extract-metadata-webpack-plugin --devHow to use
Just import the plugin from node_modules and add plugin to the webpack config like that:
const ExtractMetadataPlugin = require('extract-metadata-webpack-plugin');
...
...
module.exports = {
...
plugins: [
new ExtractMetadataPlugin({
source: 'src/**/*.jsx',
receiver: 'lib/metadata.json'
})
],
}