mirror of
https://github.com/bitwarden/browser.git
synced 2024-07-16 13:55:52 +02:00
* TypeScript and WebPack. * Minor cleanup. * Add background.js as entry point to webpack. * Use downloaded fonts for better performance. Remove google-fonts-webpack-plugin. * Add the remaining entry points and setup notification bar. * Update readme for webpack. * Convert CipherItems to TypeScript to demonstrate how a component looks in TS. * Fix edge requirering a custom angular version. * Rewrite gulp tasks for packaging releases. * Re-add the webpack gulp plugin. * Remove unessesary line in analytics.
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()
|
|
]
|
|
});
|