fis3--for small projects

Source: Internet
Author: User

Support Features:

Content embedding (primarily for pictures), less, auto-generate Sprite, compress css and JS, auto Refresh

Installing FIS3

NPM install-g fis3npm install-g fis-parser-lessnpm install-g fis3-postpackager-loaderfis3 release-d D:/file/demo ...// Publish path FIS3 server Startfis3 RELEASE-WL//Turn on auto Refresh

Fis-config.js

Fis.match (' *.{ PNG,JS,CSS} ', {release: '/static/$0 ', usehash:true  //Add MD5 stamp, for strong cache}); Fis.match (' *.js ', {optimizer:fis.plugin (' Uglify-js ')}); Fis.match (' *.png ', {optimizer:fis.plugin (' Png-compressor ')}); Fis.match ('::p ackage ', {spriter: Fis.plugin (' Csssprites ')}); Fis.match (' *.{ Css,less} ', {optimizer:fis.plugin (' clean-css ')}, Fis.match (' *.css ', {usesprite:true}); Fis.match (' *.{ Less,sass} ', {  parser:fis.plugin (' less '),   //fis-parser-less plug-in parsing  rExt: '. css ',  //. Less The file suffix was built and changed to. css file iscsslike:true}); Fis.config.set (' Settings.spriter.csssprites ', {    htmlusesprite:true,  // Open template inline CSS processing, default off    Stylereg:/(<style (?:(? =\s) [\s\s]*? ["' \s\w\/\-]>|>)" ([\s\s]*?)] (<\/style\s*>|$)/ig,//default <style></style> tag matching regular    scale:1,  //Sprite zoom    margin:10,  margin layout between//graphs      : ' Matrix '  //using matrix arrangement, default to Linear ' linear '};

  

  

 

  

  

fis3--for small projects

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.