JSPM

create-file-webpack

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 39688
  • Score
    100M100P100Q134332F
  • License MIT

Webpack plugin for creating the file with the particular content

Package Exports

  • create-file-webpack

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-file-webpack) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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