Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Enables laravel-mix inject sass-resource files via the sass-resources-loader

License

Notifications You must be signed in to change notification settings

lmeysel/laravel-mix-sass-resources-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caution

This extension is deprecated as laravel-mix now allows to include custom scss-files as resources. See


This extension utilizes the sass-resources-loader and plugs it into laravel-mix.

Usage

Simply require('laravel-mix-sass-resources-loader') in your webpack.mix.js. Then you can apply your resources calling

mix.sassResources('resources/sass/bootstrap-variables.scss')
// or
mix.sassResources(['file1.scss', 'file2.scss'])

The resources are applied in the same order you call the sassResources-function.

Hints

The plugin tries to find all entry points of scss-files and adds the sass-resources-loader to the corresponding webpack rules, which is the entry-points for the sass-sources added via mix.sass(...) and the vue-loader. Therefore also scss/sass-files referenced from vue-components can access the resources.

Make sure your resource-files do not generate css code. It would be prefixed to all generated css.

About

Enables laravel-mix inject sass-resource files via the sass-resources-loader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •