gulp-task-store 1.0.0 • Public • Published 7 years ago API
rollup_task
Parameters:
src : [String], filepath
dest : [String], filepath
moduleName : [String], default to be the file name
babel_opts: [Object], optional, if you pass your own babel settings, you should install related plugins . Default plugins: babel-core、babel-plugin-external-helpers、babel-preset-es2015、babel-preset-stage-0
e.g.
var tasks = require ( ' gulp-tasks ' ) ;
gulp . task ( ' rollup ' , function ( ) {
tasks . rollup_task ( {
src : ' src/index.js ' ,
dest : ' dist/index.bundle.js ' ,
moduleName : ' myModule '
} ) ;
} ) ;
postcss_task
Parameters:
src: [String]
dest: [String]
cssnext: [Boolean], default to be false
precss: [Boolean], default to be false
pxtorem: [Boolean], default to be false
pxtorem_opts: [Object]
e.g.
gulp . task ( ' postcss ' , function ( ) {
tasks . postcss_task ( {
src : ' src/css/index.scss ' ,
dest : ' dist/css/index.css ' ,
cssnext : true ,
precss : true ,
pxtorem : true ,
pxtorem_opts : {
rootValue : 75 ,
propWhiteList : [ ]
}
} ) ;
} ) ;
use cssnext、precss、pxtorem
clean_task
tasks . clean_task ( {
src : < filepath >
} ) ;
jsmin_task
tasks . jsmin_task ( {
src : < filepath > ,
dest : < filepath >
} ) ;
cssmin_task
tasks . cssmin_task ( {
src : < filepath > ,
dest : < filepath >
} ) ;
imgmin_task
tasks . imgmin_task ( {
src : < filepath > ,
dest : < filepath >
} ) ;
Versions Current Tags Version
Downloads (Last 7 Days) 1.0.0
2
Version History Version
Downloads (Last 7 Days) 1.0.0
2
Package Sidebar Install Downloads Weekly Downloads