Skip to content

Commit 959b6cc

Browse files
committed
Use simple copy for scratch-component.html
Using the html webpack copy plugin meant that our scratch-component.html page ended up with script tags loading both web-component.js and PyodideWorker.js (corresponding to `entry` keys in webpack.config.js). We don't need those in scratch-component.html and we want to rule out whether their presence is causing the errors we're currently seeing when deploying editor-ui using github actions.
1 parent b9302d2 commit 959b6cc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

webpack.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,10 @@ module.exports = {
140140
template: "src/web-component.html",
141141
filename: "web-component.html",
142142
}),
143-
new HtmlWebpackPlugin({
144-
inject: "body",
145-
template: "src/scratch-component.html",
146-
filename: "scratch-component.html",
147-
}),
148143
new CopyWebpackPlugin({
149144
patterns: [
150145
{ from: "public", to: "" },
146+
{ from: "src/scratch-component.html", to: "scratch-component.html" },
151147
{ from: "scratch/dist/main.js", to: "scratch.js" },
152148
// { from: "scratch/node_modules/scratch-gui/dist/static/blocks-media/default/*.svg", to: "static/blocks-media/default/[name][ext]" },
153149
// { from: "scratch/node_modules/scratch-gui/dist/static/blocks-media/high-contrast/*.svg", to: "static/blocks-media/high-contrast/[name][ext]" },

0 commit comments

Comments
 (0)