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
This commit is contained in:
Tamius Han 2020-02-07 00:07:28 +01:00
parent 2788b9e439
commit 31ed290390

View File

@ -74,7 +74,7 @@ const config = {
}), }),
new CopyWebpackPlugin([ new CopyWebpackPlugin([
{ from: 'res', to: 'res'}, { from: 'res', to: 'res'},
{ from: 'ext', to: 'ext'}, { from: 'ext', to: 'ext', ignore: ['conf/*', 'lib/**']},
{ from: 'icons', to: 'icons', ignore: ['icon.xcf'] }, { from: 'icons', to: 'icons', ignore: ['icon.xcf'] },
{ from: 'popup/popup.html', to: 'popup/popup.html', transform: transformHtml }, { from: 'popup/popup.html', to: 'popup/popup.html', transform: transformHtml },
{ from: 'options/options.html', to: 'options/options.html', transform: transformHtml }, { from: 'options/options.html', to: 'options/options.html', transform: transformHtml },