FIS will only package files by default, and will not replace static resource references in the page, so you can use the Fis-postpackager-simple plugin for resource substitution.
Installation:
NPM install-g Fis-postpackager-simple
Open:
// fis-conf.jsfis.config.set (' Modules.postpackager ', ' simple ');
To set up packaging rules:
Rule: Fis.config.set (' pack ', {'?. JS ': [], '?. CSS ': []};
// fis-conf.jsfis.config.set (' pack ', { '/pkg/lib.js ': [ ' js/lib/jquery.js ', ' js/lib/underscore.js ', ' js/lib/backbone.js ', ' js/lib/ Backbone.localStorage.js ' ], '/pkg/aio.css ': ' **.css '});
Use:
FIS Release
Before and after use:
In the merged CSS, if the picture has a __sprite, the pictures will be merged into a picture when the pack is merged.
Plug-ins can also be used to merge fragmented resources
// turn on fragmented resource merging true);
MORE: Https://github.com/hefangshi/fis-postpackager-simple
Resource Merge Fis-postpackager-simple plug-in usage