-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Home
Andrew Sliwinski edited this page May 12, 2016
·
17 revisions
Before sharing with users, we recommend that you build and compress Scratch Blocks. Building requires Python 2 and an internet connection as it uses Google's online Closure Compiler. Once you are ready, you can build by running the following in your console:
python build.py
This will export multiple files including:
msg/js/en.js
blockly_uncompressed_vertical.js
blockly_uncompressed_horizontal.js
blockly_compressed_vertical.js
blockly_compressed_horizontal.js
blocks_compressed.js
These can then be used in your project by updating the HTML of your application:
<script src="blockly_compressed_horizontal.js"></script>
<script src="blocks_compressed.js"></script>
<script src="msg/js/en.js"></script>