Skip to content

Commit 75b084b

Browse files
committed
fix(clean): prevent removing the dist directory on clean
For #77
1 parent 034cd1a commit 75b084b

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ node_modules
55
*.css.map
66
secrets.json
77
dist/*
8+
!dist/.gitkeep
89
preview/css
910
src/css/*.css

dist/.gitkeep

Whitespace-only changes.

grunt/clean.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Clean your /dist folder
22
module.exports = {
3-
clean: ["dist"]
3+
clean: ['!<%= paths.dist %>/.gitkeep', '<%= paths.dist %>/**/*']
44
};

0 commit comments

Comments
 (0)