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 });