Wednesday 15 April 2015

backbone.js - Error with multiple browserify bundles in backbone application -



backbone.js - Error with multiple browserify bundles in backbone application -

i want set vendor dependencies file seen in examples. problem modules depend on each other not find module depend on. error not find module underscore when included in html. here config:

class="snippet-code-js lang-js prettyprint-override">{ vendor: { src: [], dest: 'dist/vendor.js', options: { require: ['jquery', 'underscore', 'backbone', 'backbone.marionette', 'vis'] } }, dev: { options: { external: ['jquery', 'underscore', 'backbone', 'backbone.marionette', 'vis'] }, src: ["public/app/marionette_shim.js", "public/app/main.js"], dest: "dist/bundle.js" } }

i made repository it: https://github.com/blacksonic/browsebone after running grunt browserify:dev , grunt browserify:vendor , running index.js error: uncaught error: cannot find module '/home/blacksonic/workspace/browsebone/node_modules/underscore/underscore.js'

backbone.js marionette browserify

No comments:

Post a Comment