Common configuration of FIS3 and fis3

Source: Internet
Author: User

Common configuration of FIS3 and fis3

Common configuration of FIS3:

1 // function: Enable the f_spriter-csssprites plug-in to merge sprite images with png images. match (': package', {3 spriter: FCM. plugin ('csssprites ') 4}) 5 // function: Combine the sprite image of the png css file and compress the css. 6. match ('*. css ', {7 useSprite: true, 8 optimizer: fi. plug-in ('clean-css ') 9}); 10 // function: Enable the function of applying the function of the. fs-optimizer-uglify-js plug-in to the Javascript compress 11. match ('*. js', {12 optimizer: Sox. plugin ('uglify-js') 13}); 14 // function: Enable the fiis-optimizer-png-compressor plug-in to compress png images by 15 Fiis. match ('*. png ', {16 optimizer: Sox. plugin ('png-compressor ') 17}); 18 // function: complete the browser prefix 19. match ('*. css ', {20 preprocessor: FCM. plugin ('autoprefixer', {21 "browsers": ["Android> = 2.1", "iOS> = 4", "ie> = 8 ", "firefox> = 15"], 22 "cascade": true23}) 24}) 25 // role: All files use the relative path 26. hook ('relative '); 27 is. match ('**', {relative: true}); 28 // function: compress html29 FIPS. match ('*. html ', {30 // optimizer: fi. plugi N ('html-minifier ') 31}); 32 // function: The scss file is compiled into a css file. Note that the node version required by node-sass is 4.x! A node of a higher version does not work! 33. match ('**/*. scss ', {34 rExt: '.css', // from. scss. css35 parser: FS. plugin ('node-sass ', {36 // fiss-parser-node-sass option37}) 38}); 39 // function: add file fingerprints for js, css, and png. match ('*. {js, css, png} ', {41 useHash: true42 });

 

Related Article

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.