This sample shows how to load Blockly with RequireJS using AMD
.
Note: This sample actually references the Blockly UMD
package built and published to npm
, but since it's UMD (Universal), we're able to load that package in an AMD
environment.
npm install
npm run start
Open http://localhost:3000/index.html
- http://localhost:3000/index.html: Loads Blockly with all the defaults (JavaScript and English lang).
- http://localhost:3000/locale.html: Loads Blockly with the French locale files.