1
0
Fork 0
mirror of https://github.com/hedgedoc/hedgedoc.git synced 2025-04-11 22:03:18 +00:00

Ensure clean-webpack-plugin does not delete HTML export files

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2023-02-19 22:04:26 +01:00
parent 3f4c64fcb5
commit d6a5ea5636
No known key found for this signature in database

View file

@ -3,7 +3,7 @@ const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const {CleanWebpackPlugin} = require("clean-webpack-plugin");
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
// Fix possible nofile-issues
const fs = require('fs')
@ -13,7 +13,13 @@ gracefulFs.gracefulify(fs)
module.exports = {
name: 'app',
plugins: [
new CleanWebpackPlugin(),
new CleanWebpackPlugin({
cleanOnceBeforeBuildPatterns: [
'**/*',
'!htmlExport*',
'!htmlexport*'
]
}),
new webpack.ProvidePlugin({
Visibility: 'visibilityjs',
Cookies: 'js-cookie',