wechat web rebuild team dev tool
about us
installation
npm install -g gulpnpm install --save-dev gulp gulp-mm
usage
create gulpfile.js
var gulp = ;var mm = ; gulp; gulp; gulp;
api
server
express + socket.io(for live reload)
mmserverstartroot: __dirname + '/preview'; // when file changemmserver;
inline
you can import other file in your html
, or javascript
file with inline
plugin, for example:
sprite <!-- output: <style>content of style.less(after compile to css) </style> --> <!-- output: <img src="base64 of hello.png" --> <!-- output: content of fragment -->
// it will be replaced with content of zepto.js here; ;
sprite
the icon images will be concat to one image, which is named as current css file plus '_z.png', for example: icon_z.png.
/* icon.css */