From 3121e13628be1b94d1a672aa41ab4b8d0cf162d8 Mon Sep 17 00:00:00 2001 From: CheddarCrisp Date: Sat, 7 Mar 2020 10:48:15 -0500 Subject: [PATCH] Fix copy on build --- webpack.common.js | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index f736503..8102525 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -29,18 +29,23 @@ module.exports = { publicPath: './' }), new LicensePlugin(), - new CopyWebpackPlugin( - [ - 'src/icon/*.png', - 'src/icon/safari-pinned-tab.svg', - 'src/icon/favicon.ico', - 'src/icon/site.webmanifest', - 'src/icon/browserconfig.xml' - ], + new CopyWebpackPlugin([ { - to: 'icons' + from: 'src/icon/*.png', to: 'icons', flatten: true + }, + { + from: 'src/icon/safari-pinned-tab.svg', to: 'icons' + }, + { + from: 'src/icon/favicon.ice', to: 'icons' + }, + { + from: 'src/icon/site.webmanifest', to: 'icons' + }, + { + from: 'src/icon/browserconfig.xml', to: 'icons' } - ) + ]) ], output: { filename: 'index.js',