简体   繁体   中英

Create requirejs module with grunt

How to create requirejs module with Grunt?

I have an assembled javascript file in build/assembly.js .

In that file I have an plain javascript modules (without define(){...} wrapper).

I want to make requirejs amd module from that javascript assembly file with Grunt.

Very late, but I was searching for something similar and found: https://www.npmjs.com/package/grunt-bower-require-wrapper

This grunt package will take a JS file and wrap it in a typical requireJs header.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM