From 31ed2903901e544d538f8d07dcdb7ca408a3cc37 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Fri, 7 Feb 2020 00:07:28 +0100 Subject: [PATCH] fix webpack, don't include useless files (ext/lib and ext/conf) in build Since files in /lib and /conf use optional chaining, and since optional chaining is only supported through the magic of babel plugins, this is one sure way to fail validation --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index f557496..553da87 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -74,7 +74,7 @@ const config = { }), new CopyWebpackPlugin([ { from: 'res', to: 'res'}, - { from: 'ext', to: 'ext'}, + { from: 'ext', to: 'ext', ignore: ['conf/*', 'lib/**']}, { from: 'icons', to: 'icons', ignore: ['icon.xcf'] }, { from: 'popup/popup.html', to: 'popup/popup.html', transform: transformHtml }, { from: 'options/options.html', to: 'options/options.html', transform: transformHtml },