src/index.js
/**
   * Launches processing of a given file and adds it to the promise list.
   *
   * Note that the files are not modified and are pushed
   * back to their pipes to allow usage of other plugins.
   *
   * @param  {File}      file      Piped file.
   * @param  {String}    encoding  File encoding.
   * @param  {Function}  done      Done callback.
   * @return {undefined}           Nothing is returned (done callback is used instead).
   */
Launches processing of a given file and adds it to the promise list.
Note that the files are not modified and are pushed
back to their pipes to allow usage of other plugins.

@param  {File}      file      Piped file.
@param  {String}    encoding  File encoding.
@param  {Function}  done      Done callback.
@return {undefined}           Nothing is returned (done callback is used instead).
Launches processing of a given file and adds it to the promise list . Note that the files are not modified and are pushed back to their pipes to allow usage of other plugins . @param { File } file Piped file . @param { String } encoding File encoding . @param { Function } done Done callback . @return { undefined } Nothing is returned ( done callback is used instead ) .
function onFile(file, encoding, done) {
    if (file.isNull()) {
      return done(null, file);
    }
    if (file.isStream()) {
      return done(new gulpUtil.PluginError(pluginName, 'Streaming not supported'));
    }
    const fileContents = file.contents.toString();
    const promise = postcssProcessor.process(fileContents, {from: file.path});
    promiseList.push(promise);
    done(null, file);
  }
function onFile ( file , encoding , done ) { if ( file . isNull ( ) ) { return done ( null , file ) ; } if ( file . isStream ( ) ) { return done ( new gulpUtil . PluginError ( pluginName , 'Streaming not supported' ) ) ; } const fileContents = file . contents . toString ( ) ; const promise = postcssProcessor . process ( fileContents , { from : file . path } ) ; promiseList . push ( promise ) ; done ( null , file ) ; }
Launches processing of a given file and adds it to the promise list.
Launches processing of a given file and adds it to the promise list .