Re: require-config.js

From disqus.com, 2 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to Re:initializer.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/ca67a647 Embed
Download Paste or View Raw
  1. require.config({
  2.     // Disable script timeouts
  3.     waitSeconds: 0,
  4.     paths: {
  5.         'jquery': '../../../node_modules/jquery/dist/jquery',
  6.         'modernizr': 'lib/modernizr-custom',
  7.         'backbone': '../../../node_modules/backbone/backbone',
  8.         'backbone-marionette': '../../../node_modules/backbone.marionette/lib/core/amd/backbone.marionette',
  9.         'backbone.wreqr': '../../../node_modules/backbone.wreqr/lib/backbone.wreqr',
  10.         'backbone.babysitter': '../../../node_modules/backbone.babysitter/lib/backbone.babysitter',
  11.         'underscore': '../../../node_modules/underscore/underscore',
  12.         'react': '../../../node_modules/react/dist/react',
  13.         'prop-types': '../../../node_modules/prop-types/prop-types',
  14.         'react-dom': '../../../node_modules/react-dom/dist/react-dom',
  15.         'react-redux': '../../../node_modules/react-redux/dist/react-redux',
  16.         'redux': '../../../node_modules/redux/dist/redux',
  17.         'handlebars': '../../../node_modules/handlebars/dist/handlebars.runtime',
  18.         'jquery.slick': '../../../node_modules/slick-carousel/slick/slick',
  19.         'loglevel': '../../../node_modules/loglevel/dist/loglevel',
  20.         'moment': '../../../node_modules/moment/moment',
  21.         'raven': '../../../node_modules/raven-js/dist/raven.min',
  22.         'dompurify': '../../../node_modules/dompurify/dist/purify',
  23.         'jquery.trunk8': 'vendor/jquery/jquery.trunk8',
  24.         'jquery.fitvids': 'vendor/jquery/jquery.fitvids',
  25.  
  26.         // allows, e.g., require('bootstrap/dropdown')
  27.         'bootstrap': '../../../node_modules/bootstrap/js',
  28.  
  29.         // Disqus Next-Core - shared Disqus front end js components
  30.         'core': '../../../next-core/core',
  31.         'core/config': 'core/config',
  32.         'core/templates': 'templates/next-core',
  33.         'core/views/react': 'core/views/react',
  34.  
  35.         // External sources
  36.         // The optimizer will automatically skip network paths
  37.         'disqus.sdk': 'https://c.disquscdn.com/next/current/embed/sdk',
  38.         'remote/config': 'https://disqus.com/next/config',
  39.         'translations': 'empty:',
  40.  
  41.         // All modules are namespaced under 'home' for code
  42.         // sharing purposes.
  43.         'home': '.',
  44.     },
  45.     packages: [{
  46.         name: 'stance',
  47.         location: '../../../next-core/core/stance',
  48.     }],
  49.     shim: {
  50.         'modernizr': {
  51.             exports: 'Modernizr',
  52.         },
  53.         'underscore': {
  54.             exports: '_',
  55.         },
  56.         'handlebars': {
  57.             exports: 'Handlebars',
  58.         },
  59.         'jquery.trunk8': {
  60.             deps: ['jquery'],
  61.         },
  62.         'jquery.fitvids': {
  63.             deps: ['jquery'],
  64.         },
  65.         'remote/config': {
  66.             exports: 'DISQUS.config',
  67.         },
  68.  
  69.         'bootstrap/dropdown': {
  70.             deps: ['jquery'],
  71.         },
  72.  
  73.         'bootstrap/tooltip': {
  74.             deps: ['jquery'],
  75.         },
  76.  
  77.         'bootstrap/modal': {
  78.             deps: ['jquery'],
  79.         },
  80.  
  81.         'bootstrap/collapse': {
  82.             deps: ['jquery'],
  83.         },
  84.     },
  85. });
  86.  
  87. // https://c.disquscdn.com/next/current/home/js/apps/src/static/js/common/require-config.js

Replies to Re: require-config.js rss

Title Name Language When
Re: Re: npo.src.js disqus.com javascript 2 Months ago.

Reply to "Re: require-config.js"

Here you can reply to the paste above