tomjs / vite-plugin-vscode

用 vue/react 来开发 vscode extension webview ,支持 esm 和 cjs。Use vue/react to develop vscode extension webview, supporting esm and cjs.
MIT License
40 stars 6 forks source link

vsce package打包会有很多文件,不知道为啥 #3

Closed weituotian closed 9 months ago

weituotian commented 9 months ago

image

不知道为啥

weituotian commented 9 months ago
> vsce package
 INFO  Detected presence of yarn.lock. Using 'yarn' instead of 'npm' (to override this pass '--no-yarn' on the command line).
 WARNING  A 'repository' field is missing from the 'package.json' manifest file.
Use --allow-missing-repository to bypass.
Do you want to continue? [y/N] y
 WARNING  LICENSE, LICENSE.md, or LICENSE.txt not found
Do you want to continue? [y/N] y
This extension consists of 1093 files, out of which 459 are JavaScript files. For performance reasons, you should bundle your extension: https://aka.ms/vscode-bundle-extension . You should also exclude unnecessary files by adding them to your .vscodeignore: https://aka.ms/vscode-vscodeignore
tomgao365 commented 9 months ago

@weituotian 你应该增加个 .vscodeignore 文件,用来过滤不需要打包的内容

weituotian commented 9 months ago

好~( ̄▽ ̄)~*

weituotian commented 9 months ago

@weituotian 你应该增加个 .vscodeignore 文件,用来过滤不需要打包的内容

能在项目中加个吗

tomgao365 commented 9 months ago

@weituotian 可以的,我是根据 gitignore 改的。你可以直接用,然后根据实际情况调整。至于gitignore我都忘了多少年前从哪里复制的了。😁