Browse Source

Fixes #2156 reduces package size

- Removes sourcemaps
- Remotes other unneeded files
main
Eric Amodio 2 years ago
parent
commit
2e994b12ef
3 changed files with 10 additions and 4 deletions
  1. +5
    -0
      .vscodeignore
  2. +1
    -0
      CHANGELOG.md
  3. +4
    -4
      webpack.config.js

+ 5
- 0
.vscodeignore View File

@ -6,6 +6,7 @@
.yarn/** .yarn/**
dist/webviews/*.css dist/webviews/*.css
emoji/** emoji/**
images/docs/sponsors/**
images/docs/gitlens-preview.gif images/docs/gitlens-preview.gif
images/icons/** images/icons/**
images/originals/** images/originals/**
@ -16,11 +17,13 @@ scripts/**
src/** src/**
test/** test/**
**/*.fig **/*.fig
**/*.map
**/*.pdn **/*.pdn
**/*.js.LICENSE.txt **/*.js.LICENSE.txt
.eslintcache .eslintcache
.eslintignore .eslintignore
.eslintrc.json .eslintrc.json
.fantasticonrc.js
.gitattributes .gitattributes
.gitignore .gitignore
.gitignore-revs .gitignore-revs
@ -28,10 +31,12 @@ test/**
.prettierignore .prettierignore
.prettierrc .prettierrc
.yarnrc .yarnrc
BACKERS.md
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md
CONTRIBUTING.md CONTRIBUTING.md
esbuild.js esbuild.js
README.insiders.md README.insiders.md
svgo.config.js
tsconfig*.json tsconfig*.json
tsconfig*.tsbuildinfo tsconfig*.tsbuildinfo
webpack.config*.js webpack.config*.js

+ 1
- 0
CHANGELOG.md View File

@ -43,6 +43,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed ### Fixed
- Fixes [#2156](https://github.com/gitkraken/vscode-gitlens/issues/2156) - Reduce extension package size
- Fixes [#2136](https://github.com/gitkraken/vscode-gitlens/issues/2136) - Search & Compare quickpick shouldn't select the mode text when opening - Fixes [#2136](https://github.com/gitkraken/vscode-gitlens/issues/2136) - Search & Compare quickpick shouldn't select the mode text when opening
- Fixes [#1896](https://github.com/gitkraken/vscode-gitlens/issues/1896) - Cannot read property 'fsPath' of undefined - Fixes [#1896](https://github.com/gitkraken/vscode-gitlens/issues/1896) - Cannot read property 'fsPath' of undefined
- Fixes [#1550](https://github.com/gitkraken/vscode-gitlens/issues/1550) - Push button in commit widget does not trigger "Push force" when ALT is pressed. - Fixes [#1550](https://github.com/gitkraken/vscode-gitlens/issues/1550) - Push button in commit widget does not trigger "Push force" when ALT is pressed.

+ 4
- 4
webpack.config.js View File

@ -124,7 +124,7 @@ function getExtensionConfig(target, mode, env) {
}, },
mode: mode, mode: mode,
target: target, target: target,
devtool: 'source-map',
devtool: mode === 'production' ? false : 'source-map',
output: { output: {
path: target === 'webworker' ? path.join(__dirname, 'dist', 'browser') : path.join(__dirname, 'dist'), path: target === 'webworker' ? path.join(__dirname, 'dist', 'browser') : path.join(__dirname, 'dist'),
libraryTarget: 'commonjs2', libraryTarget: 'commonjs2',
@ -331,7 +331,7 @@ function getWebviewsConfig(mode, env) {
}, },
mode: mode, mode: mode,
target: 'web', target: 'web',
devtool: 'source-map',
devtool: mode === 'production' ? false : 'source-map',
output: { output: {
filename: '[name].js', filename: '[name].js',
path: path.join(__dirname, 'dist', 'webviews'), path: path.join(__dirname, 'dist', 'webviews'),
@ -411,14 +411,14 @@ function getWebviewsConfig(mode, env) {
{ {
loader: 'css-loader', loader: 'css-loader',
options: { options: {
sourceMap: true,
sourceMap: mode !== 'production',
url: false, url: false,
}, },
}, },
{ {
loader: 'sass-loader', loader: 'sass-loader',
options: { options: {
sourceMap: true,
sourceMap: mode !== 'production',
}, },
}, },
], ],

Loading…
Cancel
Save