Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

requireJS Example

 /*In Express...*/
 
 <script data-main = "javascripts/main" src = "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
 
/*data-min is location of the requireJS code (e.g. define());*/
 /*src is the requireJS code (you need this, requireJS does not work out of the box)*/
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #requireJS #Example
ADD COMMENT
Topic
Name
6+1 =