mirror of
https://github.com/bitwarden/browser
synced 2024-12-13 01:36:52 +01:00
36 lines
904 B
JavaScript
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()
|
|
]
|
|
});
|