feat: web extension#732
Closed
andi1984 wants to merge 1 commit into
Closed
Conversation
Implements web extension compatibility to enable the TinyPNG extension to work in VSCode's web environment (vscode.dev). This addresses issue #232. Key changes: - Created tinify-web.ts: Web-compatible TinyPNG API wrapper using Fetch API instead of Node.js tinify library - Created extension.web.ts: Web-compatible extension entry point using VSCode's FileSystem API instead of Node.js fs module - Added webpack bundling configuration for both web and Node.js targets - Updated package.json with browser field and webpack build scripts - Added webpack, webpack-cli, and ts-loader as dev dependencies - Updated tsconfig.json to include DOM types for web APIs Technical details: - Web version uses direct HTTP calls to TinyPNG API via fetch() - Replaced fsPath file access with VSCode FileSystem API - Git stage compression feature not available in web version (requires child_process which is Node.js only) - Both desktop and web versions are built and bundled separately Build outputs: - dist/web/extension.web.js: Web extension bundle (5.7 KB) - dist/node/extension.js: Node.js extension bundle (250 KB) Resolves #232
andi1984
force-pushed
the
claude/code-review-01VZswgNn4LvHrJQPYpnkjVM
branch
from
November 21, 2025 23:11
d33a142 to
35a0d96
Compare
Owner
Author
|
Can not be done as TinyPNG API does not seem to support CORS. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements web extension compatibility to enable the TinyPNG extension to work in VSCode's web environment (vscode.dev). This addresses issue #232.
Key changes:
Technical details:
Build outputs:
Resolves #232