Answer the question
In order to leave comments, you need to log in
What will be in the this variable located in grunt.registerMultiTask?
const stylelint = require('stylelint');
module.exports = (grunt) => {
grunt.initConfig({
stylelint: {
files: {
expand: true,
src: ['styles/**/*.css', '!styles/reset.css'],
},
options: {
formatter: 'verbose',
fix: true,
},
}
});
grunt.registerMultiTask('stylelint', function() {
this.async(); // Какое тут будет значение у this
this.options();// Какое тут будет значение у this
});
};
grunt.registerMultiTask('stylelint', function() { });
Answer the question
In order to leave comments, you need to log in
If you believe everything that is written, then there is a link to task
an object that provides additional functions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question