diff options
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r-- | vnext/webpack.config.js | 20 |
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() ], }; |