1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Use sass instead of deprecated node sass

This commit is contained in:
Chocobozzz 2020-11-19 15:57:52 +01:00
parent 4f926722ea
commit c4f7fe09cd
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 29 additions and 389 deletions

View file

@ -4,7 +4,6 @@ const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin')
const PurifyCSSPlugin = require('purifycss-webpack')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
module.exports = function () {
@ -117,17 +116,6 @@ module.exports = function () {
: '[name].[hash].css'
}),
new PurifyCSSPlugin({
paths: [
helpers.root('src/standalone/videos/embed.ts'),
helpers.root('src/standalone/videos/test-embed.html')
],
purifyOptions: {
minify: true,
whitelist: [ '*vjs*', '*video-js*' ]
}
}),
new HtmlWebpackPlugin({
template: 'src/standalone/videos/embed.html',
filename: 'embed.html',