Gulp-sass wont compile and include all imported files

筅森魡賤 提交于 2020-02-08 10:00:07

问题


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 -

  1. npm i
  2. gulp styles
  3. ng serve

来源:https://stackoverflow.com/questions/59966421/gulp-sass-wont-compile-and-include-all-imported-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!