Skip to content

Commit ac530b4

Browse files
Resolved SB compilation and sass installation
## bug Issue - #7 Description: While installing `node_modules` it throws `ode-sasss` isue due to node compatibility. Solution: replaced styles compilation and used latest `node-sass` version
1 parent db47720 commit ac530b4

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

gulpfile.js

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,12 @@ gulp.task('serve', function () {
7979
shelljs.exec('node --max-old-space-size=8192 node_modules/gulp/bin/gulp serve-max', { silent: false });
8080
});
8181

82-
83-
84-
8582
/**
8683
* Compile styles
8784
*/
8885
gulp.task('styles', function () {
89-
var sass = require('gulp-sass');
90-
return gulp.src(['./**/*.scss', '!./node_modules/**/*.scss'], { base: './' })
91-
.pipe(sass({
92-
outputStyle: 'expanded',
93-
includePaths: './node_modules/@syncfusion/'
94-
}))
95-
.pipe(gulp.dest('.'));
86+
gulp.src('./node_modules/@syncfusion/ej2/*.css')
87+
.pipe(gulp.dest('./styles/'));
9688
});
9789

9890
gulp.task('generate-router', function (done) {
@@ -186,7 +178,7 @@ gulp.task('build', function (done) {
186178
});
187179

188180
gulp.task('react-build', function (done) {
189-
runSequence('create-locale','generate-router','styles','scripts','bundle','plnkr-json','cssfile', done);
181+
runSequence('create-locale','generate-router','styles','scripts','bundle','plnkr-json', done);
190182
});
191183

192184
gulp.task('bundle', function () {
@@ -370,7 +362,4 @@ gulp.task('serve-max', ['react-build'], function (done) {
370362
};
371363
bs.init(options, done);
372364
});
373-
gulp.task('cssfile', function () {
374-
gulp.src('./node_modules/@syncfusion/ej2/*.css')
375-
.pipe(gulp.dest('./styles/'));
376-
});
365+

0 commit comments

Comments
 (0)