aboutsummaryrefslogtreecommitdiff
path: root/vnext/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-06 02:33:27 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit9ad14ff8f46df2488cef95ea74c0be87bffdcc49 (patch)
tree28f8765c36c0ae890075120530b6d363666520cd /vnext/webpack.config.js
parent1b216de47ea5f28e6c4e8a9fb590c0f030f8e647 (diff)
Update eslint warnings and delete unused file
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r--vnext/webpack.config.js20
1 files changed, 10 insertions, 10 deletions
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()
],
};