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:
parent
4f926722ea
commit
c4f7fe09cd
7 changed files with 29 additions and 389 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue