From cca18b6d672332034f86805244feee4f47e86c32 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Thu, 3 Sep 2020 16:55:44 -0700 Subject: [PATCH] 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. --- webpack.renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.renderer.js b/webpack.renderer.js index ce92ad9..f9a7e2b 100644 --- a/webpack.renderer.js +++ b/webpack.renderer.js @@ -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 }])