Need private packages and team management tools?Check out npm Teams »

fis-postpackager-amdclean

1.1.0 • Public • Published

fis-postpackager-amdclean

Packed AMD File And Converts AMD Code To Standard JavaScript.

use

npm install --save fis-postpackager-amdclean

settings

fis.match('::package', {
    packager: fis.plugin('map', {
        '/lib/min.js': '/sdk/**.js'
    }),
    postpackager: [
        fis.plugin('amdclean', {
            config: [
                {
                    main: '/sdk/main.js', //入口文件
                    release: '/lib/min.js' //输出文件
                }
            ],
            minify: true, //是否压缩
            debug: true //是否打印日志
        })
    ]
});
 

Install

npm i fis-postpackager-amdclean

DownloadsWeekly Downloads

4

Version

1.1.0

License

MIT

Last publish

Collaborators

  • avatar