mirror of
https://github.com/bitwarden/desktop.git
synced 2024-10-07 05:28:19 +02:00
source maps only for background and popup/app
This commit is contained in:
parent
fed4793b1d
commit
e8b8a86cd5
@ -98,7 +98,6 @@ module.exports = {
|
|||||||
{ from: './src/images', to: 'images' },
|
{ from: './src/images', to: 'images' },
|
||||||
{ from: './src/lib', to: 'lib' },
|
{ from: './src/lib', to: 'lib' },
|
||||||
{ from: './src/models', to: 'models' },
|
{ from: './src/models', to: 'models' },
|
||||||
{ from: './src/scripts', to: 'scripts' },
|
|
||||||
{ from: './src/content/autofill.css', to: 'content' }
|
{ from: './src/content/autofill.css', to: 'content' }
|
||||||
])
|
])
|
||||||
],
|
],
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
const merge = require('webpack-merge');
|
const merge = require('webpack-merge');
|
||||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
const common = require('./webpack.common.js');
|
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.exports = merge(common, {
|
||||||
module: {
|
module: {
|
||||||
@ -23,12 +30,8 @@ module.exports = merge(common, {
|
|||||||
plugins: [
|
plugins: [
|
||||||
new webpack.SourceMapDevToolPlugin({
|
new webpack.SourceMapDevToolPlugin({
|
||||||
filename: '[name].js.map',
|
filename: '[name].js.map',
|
||||||
exclude: ['vendor.js', 'popup/vendor.js']
|
include: ['background.js', 'popup/app.js']
|
||||||
}),
|
}),
|
||||||
new ExtractTextPlugin({
|
extractLess
|
||||||
filename: 'popup/css/[name].css',
|
|
||||||
disable: false,
|
|
||||||
allChunks: true
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user