Skip to content

Instantly share code, notes, and snippets.

@astorm
Last active January 26, 2016 16:41
Show Gist options
  • Save astorm/4668d2cc296b77911341 to your computer and use it in GitHub Desktop.
Save astorm/4668d2cc296b77911341 to your computer and use it in GitHub Desktop.

We kick off a program with this

requirejs(['Pulsestorm_RequireExample1/example'],function(example){
    alert(example.message);
});

This program uses the javascript module named Pulsestorm_RequireExample1/example.

Something in Magento 2 converts Pulsestorm_RequireExample1/example into

http://magento-2-with-keys.dev/static/frontend/Magento/ultimo/en_US/Pulsestorm_RequireExample1/example.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment