From a365de393173e5865338289730534b5859024187 Mon Sep 17 00:00:00 2001 From: Kintesh Date: Fri, 30 Aug 2019 15:27:51 +0100 Subject: [PATCH] update webpack config --- README.md | 2 +- webpack.dev.js | 2 ++ webpack.prod.js | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b282730..c846d0d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Install the latest release for Firefox from [AMO](https://addons.mozilla.org/en- # Usage ## Basic mapping -\ + `amazon.co.uk, Shopping` will open all amazon.co.uk (not subdomains) links in Shopping container. ## Glob diff --git a/webpack.dev.js b/webpack.dev.js index b2cffd1..c171b78 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -3,6 +3,8 @@ const merge = require('webpack-merge'); const common = require('./webpack.common.js'); module.exports = merge(common, { + mode: 'development', + devtool: 'inline-source-map', plugins: [ diff --git a/webpack.prod.js b/webpack.prod.js index e018efd..50ae77a 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -3,6 +3,8 @@ const merge = require('webpack-merge'); const common = require('./webpack.common.js'); module.exports = merge(common, { + mode: 'production', + plugins: [ new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production'),