webpack-copy-on-build-plugin

1.0.4 • Public • Published

webpack-copy-on-build-plugin

Webpack plugin that will copy/paste files after build.

Installation

npm install --save-dev webpack-copy-on-build-plugin

Usage

In config file:

var WebpackOnBuildPlugin = require('on-build-webpack');
 
// ...
  module: {
    plugins: [
      new WebpackCopyOnBuildPlugin([
         {
           from: config.output.path + '/app.[hash].js',
           to: config.output.path + '/app.js'
         },
         {
           from: config.output.path + '/app.[hash].js.map',
           to: config.output.path + '/app.js.map'
         }
        ])
    ]
  },
// ...

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    81
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    81
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i webpack-copy-on-build-plugin

Weekly Downloads

81

Version

1.0.4

License

MIT

Last publish

Collaborators

  • warsage