Skip to content
Snippets Groups Projects
Unverified Commit 686139da authored by Eric Rosenbaum's avatar Eric Rosenbaum Committed by GitHub
Browse files

Merge pull request #896 from ericrosenbaum/feature/register-music-extension-assets

Register music extension assets
parents 7e4457ce b97d5e0e
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,10 @@ class Storage extends ScratchStorage {
[this.AssetType.ImageVector, this.AssetType.ImageBitmap, this.AssetType.Sound],
asset => `${ASSET_SERVER}/internalapi/asset/${asset.assetId}.${asset.dataFormat}/get/`
);
this.addWebSource(
[this.AssetType.Sound],
asset => `/static/extension-assets/scratch3_music/${asset.assetId}.${asset.dataFormat}`
);
defaultProjectAssets.forEach(asset => this.cache(
this.AssetType[asset.assetType],
this.DataFormat[asset.dataFormat],
......
......@@ -107,6 +107,10 @@ module.exports = {
from: 'node_modules/scratch-blocks/media',
to: 'static/blocks-media'
}]),
new CopyWebpackPlugin([{
from: 'node_modules/scratch-vm/dist/node/assets',
to: 'static/extension-assets'
}]),
new CopyWebpackPlugin([{
from: 'extensions/**',
to: 'static',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment