Webpack ProvidePlugin vs externals?

It’s both possible: You can include libraries with a <script> (i. e. to use a library from a CDN) or include them into the generated bundle. If you load it via <script> tag, you can use the externals option to allow to write require(…) in your modules. Example with library from CDN: <script src=”https://code.jquery.com/jquery-git2.min.js”></script> // … Read more

Backbone.js: get current route

If you have instantiated a Router in your application, the following line returns the current fragment: Backbone.history.getFragment(); From the Backbone.js documentation: ” […] History serves as a global router (per frame) to handle hashchange events or pushState, match the appropriate route, and trigger callbacks. You shouldn’t ever have to create one of these yourself — … Read more

backbone.js & underscore.js CDN recommendation?

http://www.cdnjs.com hosts a lot of less popular JavaScript frameworks, including: backbone.js: //cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js (HTTP | HTTPS) underscore.js: //cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js (HTTP | HTTPS) For convenience, here are the script tags: Backbone.js <script type=”text/javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js”></script> Underscore.js <script src=”https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js”></script>

What are the real-world strengths and weaknesses of the many frameworks based on backbone.js? [closed]

Most of (all of?) the frameworks that you’re looking at solve the same problems, but they do it in slightly different ways with slightly different goals. I think it’s fair to say that all of these projects would solve the problems in these categories: Provide sensible set of defaults Reduce boilerplate code Provide application structure … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)