rollup-plugin-purgecss 7.0.2 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,13 +54,7 @@ function pluginPurgeCSS(options) {
54
54
  if (typeof options.output === "function") {
55
55
  return options.output(css, styles);
56
56
  }
57
- if (!options.insert && dest) {
58
- if (dest.endsWith(".js") || dest.endsWith(".ts")) {
59
- dest = dest.slice(0, -3);
60
- }
61
- dest = `${dest}.css`;
62
- return fs.writeFileSync(dest, css);
63
- }
57
+ if (!options.insert && dest) ;
64
58
  },
65
59
  };
66
60
  }
@@ -75,13 +75,7 @@ function pluginPurgeCSS(options) {
75
75
  if (typeof options.output === "function") {
76
76
  return options.output(css, styles);
77
77
  }
78
- if (!options.insert && dest) {
79
- if (dest.endsWith(".js") || dest.endsWith(".ts")) {
80
- dest = dest.slice(0, -3);
81
- }
82
- dest = `${dest}.css`;
83
- return fs__namespace.writeFileSync(dest, css);
84
- }
78
+ if (!options.insert && dest) ;
85
79
  },
86
80
  };
87
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-purgecss",
3
- "version": "7.0.2",
3
+ "version": "8.0.0",
4
4
  "description": "Rollup plugin for purgecss",
5
5
  "main": "lib/rollup-plugin-purgecss.js",
6
6
  "module": "./lib/rollup-plugin-purgecss.es.js",
@@ -38,5 +38,5 @@
38
38
  "access": "public",
39
39
  "registry": "https://registry.npmjs.org/"
40
40
  },
41
- "gitHead": "e95398d961e03a809b5e3da75e3dae1813b46b68"
41
+ "gitHead": "9269dbc8b589832bab90d29f5821fc4cf55077d6"
42
42
  }