Simple and useful plugin to create files during webpack build process
npm install create-file-plugin-webpackSimple and useful plugin to create files during the webpack build process.
To install this plugin, just use;
``sh`
$ npm install create-file-plugin-webpack
Or, if you're using yarn:
`sh`
$ yarn add create-file-plugin-webpack
`js
const CreateFilePluginWebpack = require('create-file-plugin-webpack')
{
plugins: [
new CreateFilePluginWebpack(options)
]
}
``
To use this plugin, there are 3 required options:
- content: The content to be saved in the file.
- filename: The name of the saved file.
- path: The path where the new file will be saved.