Skip to content

Latest commit

 

History

History
 
 

blockly-umd

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Home

blockly-umd-sample Built on Blockly

This sample shows how to load Blockly using the UMD built package blockly.min.js, which can be retrieved either from npm npm install blockly or through Unpkg.

A note about the built UMD module: Being UMD, you are able to load it in either in an AMD environment (RequireJS), or a CommonJS environment, or it falls back to load the Blockly object globally. This means you're able to use this package in most environments.

However, the package we publish contains all the defaults (Blockly core, blocks, the JavaScript generator and the EN lang files). If you need more flexibility, you'll want to take a look at some of the other samples for direction on how to integrate specific Blockly modules into your environment.

Installation

npm install

Running

npm run start

Browse