Created
April 15, 2018 12:09
-
-
Save arqex/37b82e9671dfd66fad40c7d543547f7c to your computer and use it in GitHub Desktop.
Webpack copy plugin
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
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