# fis-postprocessor-jswrapper **Repository Path**: mirrors_fex-team/fis-postprocessor-jswrapper ## Basic Information - **Project Name**: fis-postprocessor-jswrapper - **Description**: A postprocessor plugin for fis to wrap javascript with closure or amd define. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # fis-postprocessor-jswrapper A postprocessor plugin for fis to wrap javascript with closure or amd define. ## settings $ vi path/to/project/fis-conf.js ```javascript fis.config.merge({ settings : { postprocessor : { jswrapper : { //wrap type. if omitted, it will wrap js file with '(function(){...})();'. type : 'amd', //you can use template also, ${content} means the file content //template : '!function(){${content}}();', //wrap all js file, default is false, wrap modular js file only. wrapAll : true } } } }); ``` 或者通过 roadmap.path 局部配置 ``` fis.config.set('roadmap.path', [ { reg: '/page/**.js', jswrapper: { //wrap type. if omitted, it will wrap js file with '(function(){...})();'. type : 'amd', //you can use template also, ${content} means the file content //template : '!function(){${content}}();' } } ]); ```