mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
few more formatting fixes
This commit is contained in:
parent
141dfa2dc7
commit
5439a2b33e
@ -1,5 +1,5 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const webpack = require("webpack");
|
const webpack = require('webpack');
|
||||||
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
@ -48,11 +48,11 @@ module.exports = {
|
|||||||
'Q': 'q'
|
'Q': 'q'
|
||||||
}),
|
}),
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
name: "popup/vendor",
|
name: 'popup/vendor',
|
||||||
chunks: ['popup/app'],
|
chunks: ['popup/app'],
|
||||||
minChunks: function (module) {
|
minChunks: function (module) {
|
||||||
// this assumes your vendor imports exist in the node_modules directory
|
// this assumes your vendor imports exist in the node_modules directory
|
||||||
return module.context && module.context.indexOf("node_modules") !== -1;
|
return module.context && module.context.indexOf('node_modules') !== -1;
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
@ -87,7 +87,7 @@ module.exports = {
|
|||||||
])
|
])
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [ ".tsx", ".ts", ".js" ]
|
extensions: ['.tsx', '.ts', '.js']
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
|
@ -9,13 +9,13 @@ module.exports = merge(common, {
|
|||||||
test: /\.less$/,
|
test: /\.less$/,
|
||||||
use: [
|
use: [
|
||||||
{
|
{
|
||||||
loader: "style-loader"
|
loader: 'style-loader'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
loader: "css-loader",
|
loader: 'css-loader',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
loader: "less-loader",
|
loader: 'less-loader',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
const merge = require('webpack-merge');
|
const merge = require('webpack-merge');
|
||||||
//const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
//const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
||||||
const ExtractTextPlugin = require("extract-text-webpack-plugin");
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
const common = require('./webpack.common.js');
|
const common = require('./webpack.common.js');
|
||||||
|
|
||||||
const extractLess = new ExtractTextPlugin({
|
const extractLess = new ExtractTextPlugin({
|
||||||
filename: "popup/css/[name].css",
|
filename: 'popup/css/[name].css',
|
||||||
disable: false,
|
disable: false,
|
||||||
allChunks: true
|
allChunks: true
|
||||||
});
|
});
|
||||||
@ -18,10 +18,10 @@ module.exports = merge(common, {
|
|||||||
use: extractLess.extract({
|
use: extractLess.extract({
|
||||||
use: [
|
use: [
|
||||||
{
|
{
|
||||||
loader: "css-loader",
|
loader: 'css-loader',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
loader: "less-loader",
|
loader: 'less-loader',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user