Skip to content

Commit

Permalink
fix(vscode): reduce bundle size (#3287)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShakyaCsun authored Mar 20, 2022
1 parent 9987d03 commit fbca1d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion extensions/vscode/.vscodeignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.vscode/**
.vscode-test/**
out/test/**
node_modules
out/**
src/**
.gitignore
vsc-extension-quickstart.md
Expand Down
2 changes: 1 addition & 1 deletion extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"onCommand:extension.new-bloc",
"workspaceContains:**/pubspec.yaml"
],
"main": "./out/extension.js",
"main": "./dist/extension",
"contributes": {
"configuration": [
{
Expand Down
4 changes: 2 additions & 2 deletions extensions/vscode/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const config = {

entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
output: {
// the bundle is stored in the 'out' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, 'out'),
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, 'dist'),
filename: 'extension.js',
libraryTarget: 'commonjs2',
devtoolModuleFilenameTemplate: '../[resource-path]'
Expand Down

0 comments on commit fbca1d0

Please sign in to comment.