2
2
3
3
var gulp = require ( "gulp" ) ;
4
4
var del = require ( "del" ) ;
5
- var sass = require ( "gulp-sass" ) ;
6
5
var webpack = require ( "webpack" ) ;
7
6
var WebpackDevServer = require ( "webpack-dev-server" ) ;
8
7
var assign = require ( "object-assign" ) ;
@@ -30,22 +29,9 @@ gulp.task("copy", function() {
30
29
. pipe ( gulp . dest ( "./build" ) ) ;
31
30
} ) ;
32
31
33
- gulp . task ( "sass" , function ( ) {
34
- return gulp
35
- . src ( [ "./docs/**/*.{scss,sass}" ] )
36
- . pipe (
37
- sass ( {
38
- includePaths : [ "bower_components" , "node_modules" ] ,
39
- errLogToConsole : true
40
- } )
41
- )
42
- . pipe ( gulp . dest ( "./build" ) ) ;
43
- } ) ;
44
-
45
32
gulp . task (
46
33
"watch" ,
47
- gulp . series ( [ "copy" , "sass" ] , function ( done ) {
48
- gulp . watch ( [ "./docs/**/*.{scss,sass}" ] , gulp . parallel ( [ "sass" ] ) ) ;
34
+ gulp . series ( [ "copy" ] , function ( done ) {
49
35
gulp . watch ( [ "./docs/index.html" ] , gulp . parallel ( [ "copy" ] ) ) ;
50
36
gulp . watch ( [ "./docs/docs.css" ] , gulp . parallel ( [ "copy" ] ) ) ;
51
37
gulp . watch ( [ "./docs/slick.css" ] , gulp . parallel ( [ "copy" ] ) ) ;
@@ -56,7 +42,7 @@ gulp.task(
56
42
57
43
gulp . task (
58
44
"server" ,
59
- gulp . series ( [ "watch" , "copy" , "sass" ] , function ( ) {
45
+ gulp . series ( [ "watch" , "copy" ] , function ( ) {
60
46
console . log ( "Start" ) ;
61
47
var myConfig = require ( "./webpack.config" ) ;
62
48
if ( process . env . SINGLE_DEMO ) {
0 commit comments