create-file-plugin-webpack

Simple and useful plugin to create files during webpack build process

Usage no npm install needed!

<script type="module">
  import createFilePluginWebpack from 'https://cdn.skypack.dev/create-file-plugin-webpack';
</script>

README

create-file-plugin-webpack

License: MIT

Simple and useful plugin to create files during the webpack build process.

Installation

To install this plugin, just use;

$ npm install create-file-plugin-webpack

Or, if you're using yarn:

$ yarn add create-file-plugin-webpack

Usage

const CreateFilePluginWebpack = require('create-file-plugin-webpack')

{
  plugins: [
    new CreateFilePluginWebpack(options)
  ]
}

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.