Browse Source

fix scss compilation task

Hakim El Hattab 5 years ago
parent
commit
205ef8fdcc
2 changed files with 8 additions and 2 deletions
  1. 5 0
      Gruntfile.js
  2. 3 2
      package.json

+ 5 - 0
Gruntfile.js

@@ -1,3 +1,5 @@
+const sass = require('node-sass');
+
 /* global module:false */
 module.exports = function(grunt) {
 	var port = grunt.option('port') || 8000;
@@ -35,6 +37,9 @@ module.exports = function(grunt) {
 		},
 
 		sass: {
+			options: {
+				implementation: sass,
+			},
 			core: {
 				src: 'css/reveal.scss',
 				dest: 'css/reveal.css'

+ 3 - 2
package.json

@@ -33,11 +33,12 @@
     "grunt-contrib-qunit": "^2.0.0",
     "grunt-contrib-uglify": "^3.3.0",
     "grunt-contrib-watch": "^1.0.0",
-    "grunt-sass": "^2.0.0",
+    "grunt-sass": "^3.0.2",
     "grunt-retire": "^1.0.7",
     "grunt-zip": "~0.17.1",
     "mustache": "^2.3.0",
-    "socket.io": "^2.2.0"
+    "socket.io": "^2.2.0",
+    "node-sass": "^4.11.0"
   },
   "license": "MIT"
 }