Laravel Elixir Extension to Lint Stylus based on Stylint
$ npm install laravel-elixir-stylint --save-dev
In gulpfile.js:
// Include Laravel Elixir
var elixir = require('laravel-elixir');
// Include the extension
require('laravel-elixir-stylint');
// Lint all files under 'stylus' folder
elixir(function(mix) {
mix.stylint();
});
Type: String
or Array
elixir(function(mix) {
mix.stylint([
'resources/assets/stylus/fileA.styl',
'resources/assets/stylus/fileB.styl'
]);
});
var options = { config: '.stylintrc' }
elixir(function(mix) {
mix.stylint([
'resources/assets/stylus/fileA.styl',
'resources/assets/stylus/fileB.styl'
], options);
});
Type: Object
See stylint options
Laravel Elixir Stylint is open-sourced software licensed under the MIT license