aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/webpack
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-19 11:12:01 +0100
committerChocobozzz <me@florianbigard.com>2020-11-19 15:25:41 +0100
commit4f926722ea6784ea389013378fd233f59077ec8a (patch)
tree36e92da1d8fc9394e1e36144f206e0427b7c02c3 /client/webpack
parentfce7fe04eed39e23e76717085e92118e963def81 (diff)
downloadPeerTube-4f926722ea6784ea389013378fd233f59077ec8a.tar.gz
PeerTube-4f926722ea6784ea389013378fd233f59077ec8a.tar.zst
PeerTube-4f926722ea6784ea389013378fd233f59077ec8a.zip
Upgrade client dependencies
Migrate removed primeng theme to custom CSS
Diffstat (limited to 'client/webpack')
-rw-r--r--client/webpack/webpack.video-embed.js44
1 files changed, 22 insertions, 22 deletions
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')
4const HtmlWebpackPlugin = require('html-webpack-plugin') 4const HtmlWebpackPlugin = require('html-webpack-plugin')
5const TerserPlugin = require('terser-webpack-plugin') 5const TerserPlugin = require('terser-webpack-plugin')
6const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin') 6const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin')
7const ExtractTextPlugin = require('extract-text-webpack-plugin')
8const PurifyCSSPlugin = require('purifycss-webpack') 7const PurifyCSSPlugin = require('purifycss-webpack')
8const MiniCssExtractPlugin = require('mini-css-extract-plugin')
9 9
10module.exports = function () { 10module.exports = function () {
11 const configuration = { 11 const configuration = {
@@ -64,29 +64,29 @@ module.exports = function () {
64 64
65 { 65 {
66 test: /\.(sass|scss)$/, 66 test: /\.(sass|scss)$/,
67 use: ExtractTextPlugin.extract({ 67 use: [
68 fallback: 'style-loader', 68 MiniCssExtractPlugin.loader,
69 use: [ 69
70 { 70 {
71 loader: 'css-loader', 71 loader: 'css-loader',
72 options: { 72 options: {
73 sourceMap: true,
74 importLoaders: 1
75 }
76 },
77
78 {
79 loader: 'sass-loader',
80 options: {
81 sassOptions: {
73 sourceMap: true, 82 sourceMap: true,
74 importLoaders: 1 83 includePaths: [
75 } 84 helpers.root('src/sass/include')
76 }, 85 ]
77 {
78 loader: 'sass-loader',
79 options: {
80 sassOptions: {
81 sourceMap: true,
82 includePaths: [
83 helpers.root('src/sass/include')
84 ]
85 }
86 } 86 }
87 } 87 }
88 ] 88 }
89 }) 89 ]
90 }, 90 },
91 91
92 { 92 {
@@ -111,7 +111,7 @@ module.exports = function () {
111 }, 111 },
112 112
113 plugins: [ 113 plugins: [
114 new ExtractTextPlugin({ 114 new MiniCssExtractPlugin({
115 filename: process.env.ANALYZE_BUNDLE === 'true' 115 filename: process.env.ANALYZE_BUNDLE === 'true'
116 ? '[name].css' 116 ? '[name].css'
117 : '[name].[hash].css' 117 : '[name].[hash].css'