mirror of
https://github.com/google/blockly.git
synced 2026-01-15 12:57:12 +01:00
refactor(tests): Use additionalScripts for all script loading
Use additionalScripts option for all script loading in playground.html and advanced_playground.html.
This commit is contained in:
@@ -7,9 +7,16 @@
|
||||
<!-- This script loads uncompressed when on localhost and loads
|
||||
compressed when it is being hosted. Please add any other
|
||||
dependencies to bootstrap.js. -->
|
||||
<script>
|
||||
var BLOCKLY_BOOTSTRAP_OPTIONS = {
|
||||
additionalScripts: [
|
||||
'msg/messages.js',
|
||||
'tests/playgrounds/screenshot.js',
|
||||
'node_modules/@blockly/dev-tools/dist/index.js',
|
||||
],
|
||||
}
|
||||
</script>
|
||||
<script src="bootstrap.js"></script>
|
||||
<script src="playgrounds/screenshot.js"></script>
|
||||
<script src="../node_modules/@blockly/dev-tools/dist/index.js"></script>
|
||||
<script type=module>
|
||||
import Blockly from './blockly.mjs';
|
||||
|
||||
|
||||
@@ -3,11 +3,19 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Advanced Blockly Playground</title>
|
||||
|
||||
<script>
|
||||
var BLOCKLY_BOOTSTRAP_OPTIONS = {
|
||||
additionalScripts: [
|
||||
'msg/messages.js',
|
||||
'tests/playgrounds/screenshot.js',
|
||||
'tests/themes/test_themes.js',
|
||||
'node_modules/@blockly/dev-tools/dist/index.js',
|
||||
'node_modules/@blockly/theme-modern/dist/index.js',
|
||||
],
|
||||
}
|
||||
</script>
|
||||
<script src="../bootstrap.js"></script>
|
||||
<script src="./screenshot.js"></script>
|
||||
<script src="../themes/test_themes.js"></script>
|
||||
<script src="../../node_modules/@blockly/dev-tools/dist/index.js"></script>
|
||||
<script src="../../node_modules/@blockly/theme-modern/dist/index.js"></script>
|
||||
|
||||
<script type="module">
|
||||
import Blockly from '../blockly.mjs';
|
||||
|
||||
Reference in New Issue
Block a user