Last active
December 4, 2016 13:47
-
-
Save AmaiSaeta/67a74ad8b3ccdab5d3e43d8d196e17a2 to your computer and use it in GitHub Desktop.
copy-webpack-plugin config sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
module.exports = { | |
entry: { | |
js: './script.js', | |
}, | |
output: { | |
filename: '[name].js', | |
path: 'dist' | |
}, | |
plugins: [ | |
new CopyWebpackPlugin([ | |
{ from: 'index.html' }, | |
{ from: 'style.css' } | |
]) | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment