npm install copy-webpack-plugin --save-dev
const copyWebpackPlugin=require('copy-webpack-plugin');
module.exports={
plugins:[
new copyWebpackPlugin([
{
from:__dirname+"/public/jquery.js",
to:__dirname+"/build/jquery.js"
},
{
from:__dirname+"/public/index.js",
to:__dirname+"/build/index.js"
}
])
]
}