Revert "build: build all scripts"

This reverts commit 5359275874.
This commit is contained in:
EnixCoda 2019-11-19 09:53:55 +08:00
parent cd889cf292
commit 1189237dd4
No known key found for this signature in database
GPG key ID: FE06F5DFC1C9B8E4

View file

@ -18,6 +18,14 @@ 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(),
@ -40,8 +48,6 @@ 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',