Webpack plugin that will copy/paste files after build.
npm install --save-dev webpack-copy-on-build-plugin
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'
}
])
]
},
// ...