From 9ad14ff8f46df2488cef95ea74c0be87bffdcc49 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 6 Jul 2018 02:33:27 +0300 Subject: Update eslint warnings and delete unused file --- vnext/webpack.config.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'vnext/webpack.config.js') diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js index 104c41bb..78210fee 100644 --- a/vnext/webpack.config.js +++ b/vnext/webpack.config.js @@ -1,9 +1,9 @@ const webpack = require('webpack'); const path = require('path'); -const HtmlWebPackPlugin = require("html-webpack-plugin"); +const HtmlWebPackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); -const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); -const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); +const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); +const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const ErrorOverlayPlugin = require('error-overlay-webpack-plugin'); const history = require('connect-history-api-fallback'); const convert = require('koa-connect'); @@ -31,10 +31,10 @@ module.exports = { use: [ MiniCssExtractPlugin.loader, { - loader: "css-loader" + loader: 'css-loader' }, { - loader: "postcss-loader", options: { + loader: 'postcss-loader', options: { plugins: () => [ require('autoprefixer')({ browsers: 'last 4 versions, > 1%, ie >= 8' @@ -48,7 +48,7 @@ module.exports = { test: /\.html$/, use: [ { - loader: "html-loader", + loader: 'html-loader', options: { minimize: true } } ] @@ -89,14 +89,14 @@ module.exports = { plugins: [ new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), new MiniCssExtractPlugin({ - filename: "Juick.[contenthash].css", + filename: 'Juick.[contenthash].css', allChunks: true }), new HtmlWebPackPlugin({ - template: "./src/views/index.html", - filename: "./index.html" + template: './src/views/index.html', + filename: './index.html' }), - new ErrorOverlayPlugin() + new ErrorOverlayPlugin() ], }; -- cgit v1.2.3