1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00:00

source maps only for background and popup/app

This commit is contained in:
Kyle Spearrin
2017-11-09 11:59:41 -05:00
parent fed4793b1d
commit e8b8a86cd5
2 changed files with 9 additions and 7 deletions

View File

@@ -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
]
});