From 5439a2b33e08ee40d578fa3bcd003b94115bf19f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 28 Oct 2017 22:47:01 -0400 Subject: [PATCH] few more formatting fixes --- webpack.common.js | 8 ++++---- webpack.dev.js | 6 +++--- webpack.prod.js | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index 3c4820534e..d09e3c8533 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -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', diff --git a/webpack.dev.js b/webpack.dev.js index 3d08e45dcf..b2ff1b5782 100644 --- a/webpack.dev.js +++ b/webpack.dev.js @@ -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', } ] } diff --git a/webpack.prod.js b/webpack.prod.js index a0e0a3ec76..a3f4ccb784 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -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', } ] })