From e8b8a86cd5115a01023412da3ffc04e5872722d7 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 9 Nov 2017 11:59:41 -0500 Subject: [PATCH] source maps only for background and popup/app --- webpack.common.js | 1 - webpack.prod.js | 15 +++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index 823a9b16..c4f0d9dc 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -98,7 +98,6 @@ module.exports = { { from: './src/images', to: 'images' }, { from: './src/lib', to: 'lib' }, { from: './src/models', to: 'models' }, - { from: './src/scripts', to: 'scripts' }, { from: './src/content/autofill.css', to: 'content' } ]) ], diff --git a/webpack.prod.js b/webpack.prod.js index 9ee986bf..7d4c259a 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -1,6 +1,13 @@ const merge = require('webpack-merge'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const common = require('./webpack.common.js'); +const webpack = require('webpack'); + +const extractLess = new ExtractTextPlugin({ + filename: 'popup/css/[name].css', + disable: false, + allChunks: true +}); module.exports = merge(common, { module: { @@ -23,12 +30,8 @@ module.exports = merge(common, { plugins: [ new webpack.SourceMapDevToolPlugin({ filename: '[name].js.map', - exclude: ['vendor.js', 'popup/vendor.js'] + include: ['background.js', 'popup/app.js'] }), - new ExtractTextPlugin({ - filename: 'popup/css/[name].css', - disable: false, - allChunks: true - }) + extractLess ] });