route-to-json-webpack-plugin
v0.1.5
Published
##### Using npm: ``` npm install --save-dev route-to-json-webpack-plugin ```
Downloads
8
Readme
Install
Using npm:
npm install --save-dev route-to-json-webpack-plugin
or using yarn:
yarn add route-to-json-webpack-plugin -D
Usage
var path = require('path');
var RouterToJsonWebpackPlugin = require('route-to-json-webpack-plugin');
module.exports = {
...
plugins: [
new RouterToJsonWebpackPlugin({
routerPath: path.join(process.cwd(), './router.js'),
}),
],
};
Options
| Name | Type | Description | |:------|:-------:|------:| | routerPath | {String} | Route The path of the file |