From 03a1af813e38cf73bd982435eb9bfcb89fa03e79 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 27 Aug 2020 21:27:43 -0400 Subject: [PATCH] Add back copy plugin changes --- webpack/webpack.common.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index 99dbac35..79fea60b 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -35,11 +35,18 @@ module.exports = env => ({ }, plugins: [ // exclude locale files in moment - new CopyPlugin([ - { from: '.', to: '../', ignore: ['manifest.json'] } - ], - {context: 'public' } - ), + new CopyPlugin({ + patterns: [ + { + from: '.', + to: '../', + globOptions: { + ignore: ['manifest.json'], + }, + context: './public', + } + ] + }), new BuildManifest({ browser: env.browser, pretty: env.mode === "production",