grunt-preload

2019-10-13 admin

grunt-preload是什么

什么是grunt-preload,Make javascript support @preload tag to preload other files.

grunt-preload使用教程帮助文档

grunt-preload

Parse @preload tag to concat other files in javascript.

Getting Started

This is an internal task set used by fenbi.com, read each source before use it.

Install the module with: npm install grunt-preload

grunt.initConfig({
    preload: {
        test: {
            files: [{
                expand: true,
                cwd: 'src/',
                src: '**/*.js',
                dest: 'dest/',
                ext: '.preload.js'
            }]
        }
    }
});

grunt.loadNpmTasks('grunt-preload');

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

0.1.8 2013-02-22 Support grunt 0.4.0. 0.1.5 2013-01-15 Fix preload bug. 0.1.4 2013-01-05 Use source-map to generated source map instead UglifyJS. 0.1.3 2013-01-05 Add source map support. 0.1.2 2012-12-26 Fix: missing dependency underscore. 0.1.0 2012-12-10 First release.

License

Copyright © 2012 PerfectWorks Licensed under the MIT license.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-77251.html

文章标题:grunt-preload

回到顶部