mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
build: build all scripts
This commit is contained in:
parent
42dadbd8db
commit
5359275874
1 changed files with 2 additions and 8 deletions
|
|
@ -18,14 +18,6 @@ const plugins = [
|
|||
from: './src/assets/icons/*',
|
||||
to: 'icons/[name].[ext]',
|
||||
},
|
||||
{
|
||||
from: 'node_modules/webextension-polyfill/dist/browser-polyfill.js',
|
||||
to: 'browser-polyfill.js',
|
||||
},
|
||||
{
|
||||
from: './src/firefox-shim.js',
|
||||
to: 'firefox-shim.js',
|
||||
},
|
||||
]),
|
||||
new ForkTsCheckerWebpackPlugin(),
|
||||
new Dotenv(),
|
||||
|
|
@ -48,6 +40,8 @@ plugins.push(
|
|||
module.exports = {
|
||||
entry: {
|
||||
content: './src/content.tsx',
|
||||
'browser-polyfill': './node_modules/webextension-polyfill/dist/browser-polyfill.js',
|
||||
'firefox-shim': './src/firefox-shim.js',
|
||||
},
|
||||
devtool: IN_PRODUCTION_MODE ? 'source-map' : 'eval-source-map',
|
||||
mode: IN_PRODUCTION_MODE ? 'production' : 'development',
|
||||
|
|
|
|||
Loading…
Reference in a new issue