
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
gulp-task-sass
Advanced tools
Gulp task for processing Sass files with the option to watch the emitted source files for changes.
import gulp from 'gulp';
import sass from 'gulp-task-sass';
gulp.task('styles', sass({
base: 'app',
src: 'stylesheets/*',
dest: 'public',
sourcemaps: true
}));
$ gulp styles
Run $ npm run example to see it in action.
sass(options[, extendsDefaults])optionsType: Object
Default:
{
base: undefined,
dest: undefined,
src: undefined,
watch: undefined,
sass: undefined,
autoprefixer: undefined,
globbing: undefined,
nano: false,
purify: false,
sourcemaps: true,
envs: {
production: {
nano: {},
sourcemaps: false
}
}
}
Options that define the behavior of this task. This object is parsed by config() in gulp-task-helpers, so you can target specific NODE_ENV environments.
options.baseType: string
Default: undefined
If specified, this is the base path for the source files to emit into the stream. Patterns defined in options.src will be prefixed by this path.
options.srcType: string or string[]
Default: undefined
Glob pattern(s), relative to options.base if specified, that specifies what files to emit into the Gulp stream. These patterns are automatically appended with a wildcard glob of affected file extensions unless custom extensions are specified in the patterns.
options.destType: string
Default: undefined
Path of destination directory to write files to.
options.watchType: Object or boolean
Options that define the file watching behavior. If set to false, watching will be disabled regardless of the --watch flag.
options.watch.filesType: string or string[]
Default: Emitted source files
Glob pattern(s) that matches the files to be watched. Defaults to the emitted source file patterns computed from options.base and options.src.
options.watch.tasksType: string, Function or Array
Default: Current task name
Task(s) or methods to invoke whenever watched files have changed. This array is applied to run-sequence. Defaults to the current task name.
options.sassType: Object
Default:
{
includePaths: [
{Directory of source files},
{Directory of Node modules}
]
}
Options for gulp-sass.
options.autoprefixerType: Object
Default: undefined
Options for autoprefixer.
options.globbingType: Object
Default:
{
extensions: ['.sass', '.scss', '.css']
}
Options for gulp-css-globbing.
options.nanoType: Object
Default: false, {} in production
Options for cssnano.
options.purifyType: Object
Default: false
Options for gulp-purifycss.
options.sourcemapsType: boolean
Default: true, false when NODE_ENV=production
Specifies whether sourcemaps are enabled.
extendsDefaultsType: boolean
Default: true
Maps to useConcat param in config() of gulp-task-helpers.
You can pass a --watch or --w flag to the Gulp command to enable file watching, like so:
$ gulp styles --watch
By default, files that were emitted as source files will be marked for watching and the task name assigned to this module will be executed whenever a file changes. To override this behavior see options.watch.
This is an experimental project driven by internal requirements.
This software is released under the MIT License.
FAQs
Gulp task for processing Sass files
We found that gulp-task-sass demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.