Closed Yuriy-Svetlov closed 3 years ago
Hello, @Richienb !
I would like to make a note:
Can be loaded without require('load-grunt-tasks')(grunt); use grunt.loadNpmTasks('grunt-sass');
require('load-grunt-tasks')(grunt);
grunt.loadNpmTasks('grunt-sass');
const sass = require('node-sass'); grunt.initConfig({ sass: { options: { implementation: sass, sourceMap: true }, dist: { files: { 'main.css': 'main.scss' } } } }); grunt.loadNpmTasks('grunt-sass'); grunt.registerTask('default', ['sass']);
I'm just a contributor, thank @sindresorhus instead.
I'm aware it can be, it's just that load-grunt-tasks make it much easier when you have more than one task.
load-grunt-tasks
Hello, @Richienb !
I would like to make a note:
Can be loaded without
require('load-grunt-tasks')(grunt);
usegrunt.loadNpmTasks('grunt-sass');