We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 069b26a commit a1f09c9Copy full SHA for a1f09c9
packages/purgecss-webpack-plugin/__tests__/parse.test.js
packages/purgecss-webpack-plugin/src/index.ts
@@ -1,5 +1,5 @@
1
import * as fs from "fs";
2
-import { PurgeCSS } from "purgecss";
+import PurgeCSS, { defaultOptions } from "purgecss";
3
import { ConcatSource } from "webpack-sources";
4
import * as search from "./search";
5
import { UserDefinedOptions, PurgedStats, PurgeAsset } from "./types";
@@ -91,6 +91,7 @@ export default class PurgeCSSPlugin {
91
// Compile through Purgecss and attach to output.
92
// This loses sourcemaps should there be any!
93
const options = {
94
+ ...defaultOptions,
95
...this.options,
96
content: filesToSearch,
97
css: [
0 commit comments