diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-19 15:57:52 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-19 15:57:52 +0100 |
commit | c4f7fe09cd014b0ec5c0d64fd320780c45461c06 (patch) | |
tree | f784271f0956f8b743561ecdc99f60c531b38117 /client/webpack/webpack.video-embed.js | |
parent | 4f926722ea6784ea389013378fd233f59077ec8a (diff) | |
download | PeerTube-c4f7fe09cd014b0ec5c0d64fd320780c45461c06.tar.gz PeerTube-c4f7fe09cd014b0ec5c0d64fd320780c45461c06.tar.zst PeerTube-c4f7fe09cd014b0ec5c0d64fd320780c45461c06.zip |
Use sass instead of deprecated node sass
Diffstat (limited to 'client/webpack/webpack.video-embed.js')
-rw-r--r-- | client/webpack/webpack.video-embed.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index b20a21872..70141527c 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js | |||
@@ -4,7 +4,6 @@ const path = require('path') | |||
4 | const HtmlWebpackPlugin = require('html-webpack-plugin') | 4 | const HtmlWebpackPlugin = require('html-webpack-plugin') |
5 | const TerserPlugin = require('terser-webpack-plugin') | 5 | const TerserPlugin = require('terser-webpack-plugin') |
6 | const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin') | 6 | const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin') |
7 | const PurifyCSSPlugin = require('purifycss-webpack') | ||
8 | const MiniCssExtractPlugin = require('mini-css-extract-plugin') | 7 | const MiniCssExtractPlugin = require('mini-css-extract-plugin') |
9 | 8 | ||
10 | module.exports = function () { | 9 | module.exports = function () { |
@@ -117,17 +116,6 @@ module.exports = function () { | |||
117 | : '[name].[hash].css' | 116 | : '[name].[hash].css' |
118 | }), | 117 | }), |
119 | 118 | ||
120 | new PurifyCSSPlugin({ | ||
121 | paths: [ | ||
122 | helpers.root('src/standalone/videos/embed.ts'), | ||
123 | helpers.root('src/standalone/videos/test-embed.html') | ||
124 | ], | ||
125 | purifyOptions: { | ||
126 | minify: true, | ||
127 | whitelist: [ '*vjs*', '*video-js*' ] | ||
128 | } | ||
129 | }), | ||
130 | |||
131 | new HtmlWebpackPlugin({ | 119 | new HtmlWebpackPlugin({ |
132 | template: 'src/standalone/videos/embed.html', | 120 | template: 'src/standalone/videos/embed.html', |
133 | filename: 'embed.html', | 121 | filename: 'embed.html', |