Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including fis-postpackager-amdclean with all npm packages installed. Try it out:

var fisPostpackagerAmdclean = require("fis-postpackager-amdclean")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

fis-postpackager-amdclean v1.1.0

Packed AMD File And Converts AMD Code To Standard JavaScript

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 //是否打印日志
        })
    ]
});

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free