Advertisement
simonsmith

RequireJS config

Aug 21st, 2013
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         requirejs: {
  2.             compile: {
  3.                 options: {
  4.                     baseUrl: 'public/scripts',
  5.                     dir: 'public/scripts.min',
  6.                     mainConfigFile: 'public/scripts/main.js',
  7.                     removeCombined: true,
  8.                     findNestedDependencies: true,
  9.                     optimize: 'uglify2',
  10.                     preserveLicenseComments: false,
  11.  
  12.                     modules: [
  13.                         {
  14.                             name: 'main'
  15.                         },
  16.                         {
  17.                             name: 'page/content',
  18.                             exclude: ['main', 'lib/zepto-custom']
  19.                         },
  20.                         {
  21.                             name: 'page/nav',
  22.                             exclude: ['main', 'lib/zepto-custom']
  23.                         },
  24.                         {
  25.                             name: 'page/forum-latest',
  26.                             exclude: ['main', 'lib/zepto-custom']
  27.                         },
  28.                         {
  29.                             name: 'mobile'
  30.                         }
  31.                     ]
  32.                 }
  33.             }
  34.         },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement