fix: make sure scratch-gui images are where the JS is looking

For some reason, the build output is looking for extension images and
tutorial images in `js/static/...`. Until we figure out how to fix that,
this change will put the files in that location.
This commit is contained in:
Christopher Willis-Ford 2024-09-05 09:45:03 -07:00
parent e19c54e4ce
commit 2cb48725c4

View file

@ -247,14 +247,18 @@ module.exports = {
to: 'static/chunks'
},
{
from: 'node_modules/scratch-gui/dist/extension-worker.js'
from: 'node_modules/scratch-gui/dist/extension-worker.js',
to: 'js'
},
{
from: 'node_modules/scratch-gui/dist/extension-worker.js.map'
from: 'node_modules/scratch-gui/dist/extension-worker.js.map',
to: 'js'
},
{
from: 'node_modules/scratch-gui/dist/static/assets',
to: 'static/assets'
// TODO: why do tutorials and extension icons expect these files in `js/`?
to: 'js/static/assets'
},
{
from: 'node_modules/scratch-gui/dist/*.hex',