Skip to content

Commit 6184f4b

Browse files
authored
Migrate from node-sass to sass v1.94.1 (#275)
package.json: Replace deorecuated ? node-sass` with `sass` v1.94.1 Update Gruntfile.js: * const sass = require('sass') * options / outputStyle: 'expanded' instead of ' nested' Reason: `node-sass` is incompatibel with `Node.js` v22.19.0
1 parent 02f40d4 commit 6184f4b

File tree

3 files changed

+446
-1984
lines changed

3 files changed

+446
-1984
lines changed

League/Gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Grunt tasks: https://gruntjs.com/configuring-tasks
77
console.log(`Node ${process.version}`); // node version
88
module.exports = function (grunt) {
99
'use strict';
10-
const sass = require('node-sass'); // used in grunt-sass options, must be included in package.json
10+
const sass = require('sass'); // used in grunt-sass options, must be included in package.json
1111

1212
grunt.loadNpmTasks('grunt-sass');
1313
grunt.loadNpmTasks('@lodder/grunt-postcss'); // grunt-postcss is retired, use @lodder/grunt-postcss
@@ -24,7 +24,7 @@ module.exports = function (grunt) {
2424
options: {
2525
implementation: sass,
2626
sourceMap: false, // Create source map
27-
outputStyle: 'nested' // Minify output with "compressed"
27+
outputStyle: 'expanded' // Minify output with "compressed"
2828
},
2929
dist: {
3030
files: {

0 commit comments

Comments
 (0)