You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did my HW and cloned the repo and ran the optimizer, it produces this for app.js in the www-built dir:
define("app/messages",[], function () {
return {
getHello: function () {
return "Hello World"}}}), define("print",[], function () {
return function (e) {
console.log(e)
}}), define("app/main",["require","./messages","print"], function (e) {
var n = e("./messages"), i = e("print");
i(n.getHello())
}), requirejs.config({baseUrl: "lib", paths: {app: "../app"}}), requirejs(["app/main"]),
define("app", function () {});
I love it, it's dead f-ing simple. But what I don't understand is - what is the empty app modules for:
define("app",function(){});
that makes no sense to have that
and I still don't know what the modules property does vs. bundles. TMK bundles is a newer feature than modules but I am not even sure if they are comparable.
@jrburke
to this day, I still don't understand what the "modules" property does here:
https://github.com/volojs/create-template/blob/master/tools/build.js
what is the difference between modules produced by the optimizer and bundles produced by the optimizer?
The text was updated successfully, but these errors were encountered: