UNPKG

webpack-copy-on-build-plugin

Version:

Webpack plugin that copies files after build has been completed

35 lines (27 loc) 689 B
# webpack-copy-on-build-plugin [Webpack](http://webpack.github.io/) plugin that will copy/paste files after build. ## Installation ``` npm install --save-dev webpack-copy-on-build-plugin ``` ## Usage In config file: ``` javascript 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' } ]) ] }, // ... ```