Skip to content

Commit 7ceb880

Browse files
committed
feat: add Sass implementation
1 parent a558315 commit 7ceb880

18 files changed

+946
-6
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
2-
_ignore/
2+
_ignore/
3+
build-sass/

Gruntfile.js

+21-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ module.exports = function(grunt) {
4646
}
4747
},
4848

49+
// Sass
50+
'dart-sass': {
51+
options: {
52+
sourceMap: false
53+
},
54+
main: {
55+
files: [{
56+
expand: true,
57+
flatten: true,
58+
src: ["sass/tuesday.scss"],
59+
ext: ".css",
60+
dest: "build-sass"
61+
}]
62+
}
63+
},
64+
4965
// postcss
5066
postcss: {
5167
// autoprefixer
@@ -156,8 +172,12 @@ module.exports = function(grunt) {
156172
'usebanner:full', 'usebanner:compact',
157173
'usebanner:legacyfull', 'usebanner:legacycompact',
158174
]);
175+
grunt.registerTask('build-sass', [
176+
'dart-sass',
177+
'postcss:autoprefixer', 'postcss:nano'
178+
]);
159179
grunt.registerTask('dev', [
160180
'watch'
161181
]);
162182

163-
}
183+
}

build/tuesday.legacy.min.css

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/tuesday.min.css

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)