我遇到的问题是,当我运行
webpack配置是打包扩展示例的精确副本。
vsce package
时,仍然会收到此扩展由3587个单独的文件组成。出于性能原因,您应该捆绑您的扩展:
警告,我按照捆绑扩展步骤操作,调试正常。
package.json
{
"main": "./out/extension",
"scripts": {
"vscode:prepublish": "webpack --mode production",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"compile": "npm run webpack",
"watch": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
}
webpack配置是打包扩展示例的精确副本。