gulp-weex-scss-es6
v1.0.1
Published
Install package with NPM and add it to your development dependencies:
Downloads
2
Readme
Installation
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-weex-scss-es6
Usage
source directory:
--src
|_component
|_component.weex
|_component.scss
|_component.es6
|
|_component.we // generated by task
var weex = require('gulp-weex-scss-es6');
var watch = require('gulp-watch');
var rename = require('gulp-rename');
gulp.task('weex-source', function(){
return watch('src/**/*.(weex|scss|es6)')
.pipe(weex({
babel_options: {
presets: ['es2015'],
},
// scss_options: {},
// weex: '.weex', // extname
// scss: '.scss', // extname
// es6: '.es6', // extname
}))
.pipe(rename(function(path) {
path.extname = '.we';
}))
.pipe(gulp.dest('src'));
})