1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00
bitwarden-browser/webpack.prod.js
2017-10-28 22:47:01 -04:00

36 lines
904 B
JavaScript

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: [
{
test: /\.less$/,
use: extractLess.extract({
use: [
{
loader: 'css-loader',
},
{
loader: 'less-loader',
}
]
})
}
]
},
plugins: [
extractLess
//new UglifyJSPlugin()
]
});