An open API service indexing awesome lists of open source software.

https://github.com/arulkumar-lab/amd-javascript-example

AMD module using gulp task / direct loading to HTML
https://github.com/arulkumar-lab/amd-javascript-example

amd amd-module amdoptimize jquery requirejs

Last synced: 2 months ago
JSON representation

AMD module using gulp task / direct loading to HTML

Awesome Lists containing this project

README

        

# amd-javascript-example

AMD module with requireJS / jquery using gulp task and direct loading to HTML

```npm install```


Windows CLI to bundle the dist folder

```r.js.cmd -o build.js```


Bundle the dist folder

```r.js -o build.js```

Load global compressed file (i.e index.html)

``````

Load direct JS module (i.e index.html)

``````

*Note: To enable debugging add debugger; or un-comment //debugger; from app.js.

Reference:
https://requirejs.org/docs/optimization.html

![image](https://user-images.githubusercontent.com/56085499/85409178-66d45980-b55d-11ea-8fb0-a0b4164e7f8c.png)

![image](https://user-images.githubusercontent.com/56085499/85409460-bc106b00-b55d-11ea-8bcf-c6e9785355b5.png)