Skip to content

Instantly share code, notes, and snippets.

@arqex
Created April 15, 2018 12:09
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 arqex/37b82e9671dfd66fad40c7d543547f7c to your computer and use it in GitHub Desktop.
Save arqex/37b82e9671dfd66fad40c7d543547f7c to your computer and use it in GitHub Desktop.
Webpack copy plugin
var Copy = require('copy-webpack-plugin');
// ...
{
// ...
plugins: [
new Copy({
from: 'assets/fonts',
to: 'fonts', // path relative to the build folder
toType: 'dir', // or 'file'
ignore: ['*.json'] // We can skip files
})
]
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment