Load projects & costumes through scratch-storage

This also sets up the framework to load sounds through scratch-storage,
to be finished in a later change.
This commit is contained in:
Christopher Willis-Ford 2017-01-27 13:44:48 -05:00
parent 2ebb112d30
commit c23e9c6bf8
8 changed files with 213 additions and 64 deletions

View file

@ -64,10 +64,12 @@ module.exports = [
'highlightjs/highlight.pack.min.js',
// Scratch Blocks
'scratch-blocks/dist/vertical.js',
// Audio
'scratch-audio',
// Renderer
'scratch-render',
// Audio
'scratch-audio'
// Storage
'scratch-storage'
]
},
output: {
@ -92,13 +94,17 @@ module.exports = [
test: require.resolve('scratch-blocks/dist/vertical.js'),
loader: 'expose-loader?Blockly'
},
{
test: require.resolve('scratch-audio'),
loader: 'expose-loader?AudioEngine'
},
{
test: require.resolve('scratch-render'),
loader: 'expose-loader?RenderWebGL'
},
{
test: require.resolve('scratch-audio'),
loader: 'expose-loader?AudioEngine'
test: require.resolve('scratch-storage'),
loader: 'expose-loader?Scratch.Storage'
}
]
},