update webpack to include new install/update pages

This commit is contained in:
Tamius Han 2020-02-26 00:44:28 +01:00
parent acfa833203
commit d009b53dba

View File

@ -15,6 +15,7 @@ const config = {
'ext/uw-bg': './ext/uw-bg.js', 'ext/uw-bg': './ext/uw-bg.js',
'popup/popup': './popup/popup.js', 'popup/popup': './popup/popup.js',
'options/options': './options/options.js', 'options/options': './options/options.js',
'install/first-time/first-time':'./install/first-time/first-time.js',
}, },
output: { output: {
path: __dirname + `/dist-${process.env.BROWSER == 'firefox' ? 'ff' : process.env.BROWSER}`, path: __dirname + `/dist-${process.env.BROWSER == 'firefox' ? 'ff' : process.env.BROWSER}`,
@ -78,6 +79,7 @@ const config = {
{ 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 },
{ from: 'install/first-time/first-time.html', to: 'install/first-time/first-time.html', transform: transformHtml},
{ {
from: 'manifest.json', from: 'manifest.json',
to: 'manifest.json', to: 'manifest.json',