问题
Below is my import statment
@import '../../node_modules/@syncfusion/ej2-angular-grids/styles/material.scss';
.checking {
@import '../../node_modules/@syncfusion/ej2-angular-grids/styles/material-dark.scss';
}
my gulp task is like below:
gulp.task('styles', function () {
sass.compiler = require('node-sass');
return gulp.src("./check/*.scss")
.pipe(sass({
outputStyle: 'expanded',
includePaths: ["./node_modules/@syncfusion/"]
}))
.pipe(sass.sync().on('error', sass.logError))
.pipe(gulp.dest('./src/'));
});
when i compile, it wont generate all required class for 2nd import inside checking
class
Sample - https://github.com/kumaresan-subramani/anguular-scss
To Run Sample -
- npm i
- gulp styles
- ng serve
来源:https://stackoverflow.com/questions/59966421/gulp-sass-wont-compile-and-include-all-imported-files