JSPM

laravel-mix-stylelint

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2242
  • Score
    100M100P100Q124755F
  • License MIT

A quick laravel-mix plugin for adding stylelint support

Package Exports

  • laravel-mix-stylelint
  • laravel-mix-stylelint/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (laravel-mix-stylelint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

laravel-mix-stylelint

This extension is designed to allow you add stylelint to your laravel-mix chain.

Installation

  1. Require the package through yarn or npm. Laravel-mix will install the required dependencies as needed.

    yarn add laravel-mix-stylelint
  2. Add a configuration file to your project root.

    By default, this package looks for .stylelintrc.js in your project root.

    This can be overridden during the follow step.

  3. Import the package into your laravel webpack config file (webpack.mix.js).

    require( 'laravel-mix-stylelint' );
    ...
    mix.stylelint();
  • Defaults may be overridden by passing an object to the mix call:

    mix.stylelint({configFile:  path.join( {'default.js'} });
  • The default is to use SCSS syntax and scan all SCCS, VUE, & BLADE files.

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