fix paths for CopyWebpackPlugin

These files are no longer listed as dependencies of scratch-desktop so
we need to reach into scratch-gui to get them. We should find a better
solution but this will work for now.
This commit is contained in:
Christopher Willis-Ford 2020-09-03 16:55:44 -07:00
parent e0fb2d4c53
commit cca18b6d67

View file

@ -19,7 +19,7 @@ module.exports = defaultConfig =>
],
plugins: [
new CopyWebpackPlugin([{
from: 'node_modules/scratch-blocks/media',
from: 'node_modules/scratch-gui/node_modules/scratch-blocks/media',
to: 'static/blocks-media'
}]),
new CopyWebpackPlugin([{
@ -27,7 +27,7 @@ module.exports = defaultConfig =>
context: 'node_modules/scratch-vm/dist/web'
}]),
new CopyWebpackPlugin([{
from: 'src/lib/libraries/*.json',
from: 'node_modules/scratch-gui/src/lib/libraries/*.json',
to: 'static/libraries',
flatten: true
}])