Skip to content

Commit a14de4d

Browse files
takaokoujiclaude
andcommitted
fix: use PUBLIC_PATH environment variable in WebpackPwaManifest
- Replace hardcoded publicPath: './' with process.env.PUBLIC_PATH || 'auto' - Ensures consistent path handling across all webpack plugins - Allows PWA manifest to use correct base path for different deployments Test confirmed: PUBLIC_PATH="/smalruby3-gui/" now correctly generates <script defer src="/smalruby3-gui/gui.js"></script> in index.html 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent fcb7dc7 commit a14de4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const buildWithPwaConfig = buildConfig.clone()
187187
)
188188
.addPlugin(
189189
new WebpackPwaManifest({
190-
publicPath: './',
190+
publicPath: process.env.PUBLIC_PATH || 'auto',
191191
name: 'Smalruby',
192192
short_name: 'Smalruby',
193193
description: 'GraphicaL User Interface for creating and running Smalruby 3.0 projects',

0 commit comments

Comments
 (0)