Merge pull request #896 from ericrosenbaum/feature/register-music-extension-assets
Register music extension assets
This commit is contained in:
2 files changed
+8
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user