Skip to content

philicevic/mix-glob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mix Glob

A laravel mix extension to support glob values. It gives developers the opportunity to use glob values instead of adding every file ony by one.

Usage

Usage of glob always follows the same pattern. The first parameter is the component you want to use. The second contains an array of parameters that should be passed to the used component.

The following components are supported:

  • sass
  • less
  • stylus
  • postCss
  • js
  • react
  • ts

Example using the sass component:

// Use every sass file as a seperate entry point
mix.glob('sass', ['src/scss/**/*.scss', 'dist/css']);

// Exclude files that start with an underscore
mix.glob('sass', ['src/scss/**/[^_]*.scss', 'dist/css']);

About

A laravel mix extension to support glob values

Resources

License

Stars

Watchers

Forks

Packages

No packages published