Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const CopyWebpackPlugin = require('copy-webpack-plugin');
- function copy(path) {
- return {
- from: path,
- to: path,
- };
- }
- function multipleCopy(...paths) {
- return paths.map(copy);
- }
- const config = {
- plugins: [
- new CopyWebpackPlugin(
- multipleCopy('_locales', 'manifest.json')
- .concat([
- {from: '**/*.html'},
- {from: '**/*.css'},
- {from: '**/*.png'},
- ])
- ),
- ],
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement