P
P
pegas2018-05-24 14:23:11
JavaScript
pegas, 2018-05-24 14:23:11

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
  });
};

Here's the code. I want to deal with grunt.registerMultiTask. Explain pliz what will be in the word this inside
grunt.registerMultiTask('stylelint', function() { });

???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Uvarov, 2018-05-24
@1PeGaS

5b06b44bda0ef141238573.png5b06b45920f0f376568881.png
If you believe everything that is written, then there is a link to taskan object that provides additional functions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question