Skip to content

stakahashi/laravel-mix-stylelint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Mix stylelint

npm version

Install

npm i @stakahashi/laravel-mix-stylelint

Usage

Create a stylelintrc.json.

$ touch stylelintrc.json

Import package into laravel webpack config file.

require('@stakahashi/laravel-mix-stylelint');
...
mix.stylelint();

Default Configuration

configBasedir: path.join(__dirname, '../../../'),
configFile: '.stylelintrc.json',
context: './resources',
failOnError: false,
files: ['**/*.scss', '**/*.vue', '**/*.blade.php'],
quiet: false,
syntax: 'scss'