Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 659 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 659 Bytes

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 WebpackCopyOnBuildPlugin = 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'
         }
        ])
    ]
  },
// ...