Answer the question
In order to leave comments, you need to log in
How to connect normalize to stylus?
$.stylus({
options: {
include: './node_modules/normalize.styl/'
}
}),
@import 'normalize'
Answer the question
In order to leave comments, you need to log in
1. Download normalize.css
2. Put it in the project
3. Change the extension to .styl or set the 'include css' parameter: true
gulp.task('include-css', function() {
return gulp.src('./css/*.styl')
.pipe(stylus({
'include css': true
}))
.pipe(gulp.dest('./'));
});
@import 'path/to/file.styl'
to any file, with 'include css': @import 'path/to/file.css'
gulp.task('include-css', function() {
return gulp.src('./css/*.styl')
.pipe(stylus({
use: [
rupture(),
autoprefixer({
cascade: false
})
]
}))
.pipe(gulp.dest('./'));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question