Skip to content

Commit

Permalink
fix: make sure scratch-gui images are where the JS is looking
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cwillisf committed Sep 5, 2024
1 parent e19c54e commit 2cb4872
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2cb4872

Please sign in to comment.