few more formatting fixes

This commit is contained in:
Kyle Spearrin 2017-10-28 22:47:01 -04:00
parent 141dfa2dc7
commit 5439a2b33e
3 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
const path = require('path');
const webpack = require("webpack");
const webpack = require('webpack');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
@ -48,11 +48,11 @@ module.exports = {
'Q': 'q'
}),
new webpack.optimize.CommonsChunkPlugin({
name: "popup/vendor",
name: 'popup/vendor',
chunks: ['popup/app'],
minChunks: function (module) {
// 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({
@ -87,7 +87,7 @@ module.exports = {
])
],
resolve: {
extensions: [ ".tsx", ".ts", ".js" ]
extensions: ['.tsx', '.ts', '.js']
},
output: {
filename: '[name].js',

View File

@ -9,13 +9,13 @@ module.exports = merge(common, {
test: /\.less$/,
use: [
{
loader: "style-loader"
loader: 'style-loader'
},
{
loader: "css-loader",
loader: 'css-loader',
},
{
loader: "less-loader",
loader: 'less-loader',
}
]
}

View File

@ -1,10 +1,10 @@
const merge = require('webpack-merge');
//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 extractLess = new ExtractTextPlugin({
filename: "popup/css/[name].css",
filename: 'popup/css/[name].css',
disable: false,
allChunks: true
});
@ -18,10 +18,10 @@ module.exports = merge(common, {
use: extractLess.extract({
use: [
{
loader: "css-loader",
loader: 'css-loader',
},
{
loader: "less-loader",
loader: 'less-loader',
}
]
})