diff options
Diffstat (limited to 'tools/tasks/build.sass.dev.ts')
-rw-r--r-- | tools/tasks/build.sass.dev.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/tasks/build.sass.dev.ts b/tools/tasks/build.sass.dev.ts new file mode 100644 index 0000000..a2127be --- /dev/null +++ b/tools/tasks/build.sass.dev.ts @@ -0,0 +1,22 @@ +import {join} from 'path'; +import {APP_SRC} from '../config'; + +export = function buildSassDev(gulp, plugins, option) { + return function() { + return gulp.src(join(APP_SRC, '**', '*.scss')) + .pipe(plugins.plumber({ + // this allows gulp not to crash on sass compilation errors + errorHandler: function(error) { + console.log(error.message); + this.emit('end'); + } + })) + .pipe(plugins.compass({ + // config_file: './config.rb', + style: 'compressed', + css: 'app/assets/css', + sass: join(APP_SRC, 'assets/sass'), + })) + .pipe(gulp.dest(join(APP_SRC, 'assets'))); + }; +} |