Skip to content

Instantly share code, notes, and snippets.

@AmaiSaeta
Last active December 4, 2016 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AmaiSaeta/67a74ad8b3ccdab5d3e43d8d196e17a2 to your computer and use it in GitHub Desktop.
Save AmaiSaeta/67a74ad8b3ccdab5d3e43d8d196e17a2 to your computer and use it in GitHub Desktop.
copy-webpack-plugin config sample
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