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
@ -3,7 +3,7 @@ const path = require('path')
|
|||||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
||||||
const {CleanWebpackPlugin} = require("clean-webpack-plugin");
|
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
|
||||||
|
|
||||||
// Fix possible nofile-issues
|
// Fix possible nofile-issues
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
@ -13,7 +13,13 @@ gracefulFs.gracefulify(fs)
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'app',
|
name: 'app',
|
||||||
plugins: [
|
plugins: [
|
||||||
new CleanWebpackPlugin(),
|
new CleanWebpackPlugin({
|
||||||
|
cleanOnceBeforeBuildPatterns: [
|
||||||
|
'**/*',
|
||||||
|
'!htmlExport*',
|
||||||
|
'!htmlexport*'
|
||||||
|
]
|
||||||
|
}),
|
||||||
new webpack.ProvidePlugin({
|
new webpack.ProvidePlugin({
|
||||||
Visibility: 'visibilityjs',
|
Visibility: 'visibilityjs',
|
||||||
Cookies: 'js-cookie',
|
Cookies: 'js-cookie',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user