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

vendors for background. clean out gulp.

This commit is contained in:
Kyle Spearrin
2017-11-08 10:22:26 -05:00
parent 1cd192a398
commit f937fca917
8 changed files with 63 additions and 126 deletions

View File

@@ -1,16 +1,8 @@
const merge = require('webpack-merge');
//const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const common = require('./webpack.common.js');
const extractLess = new ExtractTextPlugin({
filename: 'popup/css/[name].css',
disable: false,
allChunks: true
});
module.exports = merge(common, {
devtool: 'source-map',
module: {
rules: [
{
@@ -29,7 +21,14 @@ module.exports = merge(common, {
]
},
plugins: [
extractLess
//new UglifyJSPlugin()
new webpack.SourceMapDevToolPlugin({
filename: '[name].js.map',
exclude: ['vendor.js', 'popup/vendor.js']
}),
new ExtractTextPlugin({
filename: 'popup/css/[name].css',
disable: false,
allChunks: true
})
]
});