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:
parent
3f4c64fcb5
commit
d6a5ea5636
1 changed files with 8 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue