From 5359275874fefaab6c3f72b7255384f2e0b2d1cc Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Mon, 18 Nov 2019 19:49:58 +0800 Subject: [PATCH] build: build all scripts --- webpack.config.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index a3d34fd..2c62aba 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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',