fis-postprocessor-ypm

0.1.1 • Public • Published

fis-postprocessor-jswrapper

A postprocessor plugin for fis to wrap javascript with closure or amd define.

settings

$ vi path/to/project/fis-conf.js
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
            }
        }
    }
});

Readme

Keywords

Package Sidebar

Install

npm i fis-postprocessor-ypm

Weekly Downloads

6

Version

0.1.1

License

none

Last publish

Collaborators

  • kaven