grunt-cjs2web

1.0.0 • Public • Published

grunt-cjs2web

Grunt task for cjs2web.

Description

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-cjs2web

Add the following line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-cjs2web');

Configuration for this grunt task is equal to cjs2web's options. Example:

grunt.initConfig({
   cjs2web: {
       all: {
           fileName: './src/index.js',
           combine: true,
           iife: true
       }
   }
});

Execute the task:

grunt cjs2web:all

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-cjs2web

Weekly Downloads

1

Version

1.0.0

License

none

Last publish

Collaborators

  • alexlawrence