Skip to content
Snippets Groups Projects
Commit 9fc750d2 authored by Sohail Lajevardi's avatar Sohail Lajevardi
Browse files

Add stylelint task to laravel-mix

parent 096108bd
Branches 5.0.x
No related merge requests found
......@@ -10,6 +10,7 @@
const proxy = require('./config/proxy.js');
const mix = require('laravel-mix');
const glob = require('glob');
require('laravel-mix-stylelint');
/*
|--------------------------------------------------------------------------
......@@ -76,4 +77,16 @@ glob.sync('src/components/**/*.js').forEach((sourcePath) => {
mix.js(sourcePath, destinationPath);
});
/*
|--------------------------------------------------------------------------
| Style Lint
|--------------------------------------------------------------------------
*/
mix.stylelint({
configFile: './.stylelintrc.js',
context: './src',
failOnError: false,
files: ['**/*.scss'],
quiet: false,
customSyntax: 'postcss-scss',
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment