create-file-webpack

1.0.2 • Public • Published

Create file plugin for WebPack

License: MIT

Very simple plugin to create a file at the end of the build process with the particular text.

Installation

npm i create-file-webpack --save-dev

Usage

const CreateFileWebpack = require('create-file-webpack')
 
// webpack config
{
  plugins: [
    new CreateFileWebpack({options})
  ]
}

List of possible options:

var opts = {
    // path to folder in which the file will be created
    path: './dist',
    // file name
    fileName: 'index.js',
    // content of the file
    content: 'export * from ./module.umd.js'
};

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i create-file-webpack

    Weekly Downloads

    27,621

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.76 kB

    Total Files

    4

    Last publish

    Collaborators

    • appius