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 () {
: '[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',