Skip to content

PGSSoft/gulp-recipe-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM

Recipe for sass files compilation and css transforms application.

Task

sass

Compile all sass files into temp folder.

watch:sass

deps: 'sass'

Watch for changes on all sass files and compile them. Source file change trigger recompilation of only that changed file. Partial file change triggers full project recompilation.

Configuration

Recipe specific

config.sass

default:

{
    style: 'expanded',
    errLogToConsole: true,
    includePaths: [config.paths.app]
}

Configure sass task

sources.sass

mandatory

Source files for sass compiler. Accepts *.sass and *.scss.

example config:

sources.sass = ['app/components/**/*.scss', 'app/*.scss'];

Paths

paths.app

default: 'app/'

Default sass include path.

Tasks

tasks.sass

default: 'sass'

sass task name.

tasks.watchSass

default: 'watch:sass'

watch:sass task name.

Api

Provided Hooks

pipes.devProcessCss*

type: sequence

Process css files, the sass compiler output.

Used Hooks

pipes.assetSass

Provide compiled sass files into build as assets.

About

Receipe for sass files compilation and watching

Resources

Stars

Watchers

Forks

Packages

No packages published