Skip to content

Commit b422e06

Browse files
chrisroosfloehopper
authored andcommitted
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 36680fb commit b422e06

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
@@ -137,14 +137,10 @@ module.exports = {
137137
template: "src/web-component.html",
138138
filename: "web-component.html",
139139
}),
140-
new HtmlWebpackPlugin({
141-
inject: "body",
142-
template: "src/scratch-component.html",
143-
filename: "scratch-component.html",
144-
}),
145140
new CopyWebpackPlugin({
146141
patterns: [
147142
{ from: "public", to: "" },
143+
{ from: "src/scratch-component.html", to: "scratch-component.html" },
148144
{ from: "scratch/dist/main.js", to: "scratch.js" },
149145
// { from: "scratch/node_modules/scratch-gui/dist/static/blocks-media/default/*.svg", to: "static/blocks-media/default/[name][ext]" },
150146
// { 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)