From 4f926722ea6784ea389013378fd233f59077ec8a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Nov 2020 11:12:01 +0100 Subject: Upgrade client dependencies Migrate removed primeng theme to custom CSS --- client/webpack/webpack.video-embed.js | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'client/webpack') diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index aa7c5e550..b20a21872 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js @@ -4,8 +4,8 @@ const path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') const TerserPlugin = require('terser-webpack-plugin') const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin') -const ExtractTextPlugin = require('extract-text-webpack-plugin') const PurifyCSSPlugin = require('purifycss-webpack') +const MiniCssExtractPlugin = require('mini-css-extract-plugin') module.exports = function () { const configuration = { @@ -64,29 +64,29 @@ module.exports = function () { { test: /\.(sass|scss)$/, - use: ExtractTextPlugin.extract({ - fallback: 'style-loader', - use: [ - { - loader: 'css-loader', - options: { + use: [ + MiniCssExtractPlugin.loader, + + { + loader: 'css-loader', + options: { + sourceMap: true, + importLoaders: 1 + } + }, + + { + loader: 'sass-loader', + options: { + sassOptions: { sourceMap: true, - importLoaders: 1 - } - }, - { - loader: 'sass-loader', - options: { - sassOptions: { - sourceMap: true, - includePaths: [ - helpers.root('src/sass/include') - ] - } + includePaths: [ + helpers.root('src/sass/include') + ] } } - ] - }) + } + ] }, { @@ -111,7 +111,7 @@ module.exports = function () { }, plugins: [ - new ExtractTextPlugin({ + new MiniCssExtractPlugin({ filename: process.env.ANALYZE_BUNDLE === 'true' ? '[name].css' : '[name].[hash].css' -- cgit v1.2.3