Skip to content

Commit 93603ca

Browse files
committed
Updated dependencies & fixed purge default value bug
1 parent fc3d3e5 commit 93603ca

File tree

4 files changed

+370
-311
lines changed

4 files changed

+370
-311
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.4.0] - 2021-06-05
11+
12+
### Updated
13+
14+
- [node-sass](https://github.com/sass/node-sass/releases/tag/v6.0.0) to v6.0.0
15+
- [minify](https://github.com/coderaiser/minify/releases/tag/v7.0.2) to v7.0.2
16+
- [purgecss](https://github.com/FullHuman/purgecss/releases/tag/v4.0.0) to v4.0.3
17+
18+
### Fixed
19+
20+
- `purge` config value now defaults to `false`
21+
1022
## [0.3.1] - 2020-09-10
1123

1224
### Added
@@ -56,7 +68,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5668
- Developers can disable `purgeCSS`
5769
- CLI consumes user provided config file
5870

59-
[unreleased]: https://github.com/codewithkyle/cssmonster/compare/v0.3.0...HEAD
71+
[unreleased]: https://github.com/codewithkyle/cssmonster/compare/v0.4.0...HEAD
72+
[0.4.0]: https://github.com/codewithkyle/cssmonster/compare/v0.3.1...v0.4.0
6073
[0.3.0]: https://github.com/codewithkyle/cssmonster/compare/v0.2.1...v0.3.0
6174
[0.2.1]: https://github.com/codewithkyle/cssmonster/compare/v0.2.0...v0.2.1
6275
[0.2.0]: https://github.com/codewithkyle/cssmonster/compare/v0.1.1...v0.2.0

cssmonster.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class CSSMonster {
5252
outDir: path.resolve(cwd, "cssmonster"),
5353
sources: [path.resolve(cwd, "src")],
5454
minify: true,
55-
purge: true,
55+
purge: false,
5656
purgeCSS: null,
5757
blacklist: [],
5858
include: [],
@@ -463,7 +463,7 @@ class CSSMonster {
463463
await this.normalizeCSS();
464464

465465
/** PurgeCSS */
466-
if (this.config.purge) {
466+
if (this.config.purge && this.config.purgeCSS !== null) {
467467
spinner.text = "Purging CSS";
468468
await this.commenceThePurge();
469469
}

0 commit comments

Comments
 (0)