Skip to content

miltoncandelero/create-file-webpack

 
 

Repository files navigation

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'
};

About

The simple webpack plugin to create a file with the particular content at the end of the build process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%