1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-19 15:57:42 +01:00
bitwarden-browser/webpack.prod.js

36 lines
904 B
JavaScript
Raw Normal View History

const merge = require('webpack-merge');
//const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
2017-10-29 03:47:01 +01:00
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const common = require('./webpack.common.js');
const extractLess = new ExtractTextPlugin({
2017-10-29 03:47:01 +01:00
filename: 'popup/css/[name].css',
disable: false,
allChunks: true
});
module.exports = merge(common, {
devtool: 'source-map',
module: {
rules: [
{
test: /\.less$/,
use: extractLess.extract({
use: [
{
2017-10-29 03:47:01 +01:00
loader: 'css-loader',
},
{
2017-10-29 03:47:01 +01:00
loader: 'less-loader',
}
]
})
}
]
},
plugins: [
extractLess
//new UglifyJSPlugin()
]
});