Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tyler36/laravel-mix-stylelint
https://github.com/tyler36/laravel-mix-stylelint
hacktoberfest laravel-mix-plugin
Last synced: about 3 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/tyler36/laravel-mix-stylelint
- Owner: tyler36
- License: other
- Created: 2018-04-03T03:14:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-09T08:39:52.000Z (almost 3 years ago)
- Last Synced: 2024-09-05T21:05:51.876Z (26 days ago)
- Topics: hacktoberfest, laravel-mix-plugin
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
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.```bash
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`).
```js
require( 'laravel-mix-stylelint' );
...
mix.stylelint();
```- Defaults may be overridden by passing an object to the mix call:
```js
mix.stylelint({configFile: path.join( {'default.js'} });
```- The default is to use SCSS syntax and scan all `SCCS`, `VUE`, & `BLADE` files.
```js
configFile: path.join( __dirname, '../../.stylelintrc.js' ),
context: './resources',
failOnError: false,
files: ['**/*.scss', '**/*.vue', '**/*.blade.php'],
quiet: false,
syntax: 'scss',
```