P
P
Pavel2016-08-21 01:26:10
backbone.js
Pavel, 2016-08-21 01:26:10

How to work with Marionette 3?

If you just take the second Marionette.js and connect it, then the third one needs to be rebuilt somehow. Moreover, when creating new custom business logic files, you need to write something like at the beginning:
require('Marionette')
As it is written on the library website, you need to collect all this with webpack. I mastered Gulp, but it didn’t go any further.
Do I understand correctly that now we need to work with Marionette as follows:
1) Create a bunch of business logic files
2) Write them require (dependencies)
3) Feed these files to gulp with a configured skeleton for webpack
4) We get the output .. But what do we get as an output? How will these dependencies merge?
Now I did, probably, not very correctly: I just downloaded and included the marioentte.js lib and a few regular business logic files that I concatenate through gulp.
Do I understand correctly that with the help of the new approach, we can asynchronously load pieces of js code during the application ? Or is this all for the initial assembly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question