瀏覽代碼

Fixes #2156 reduces package size

- Removes sourcemaps
- Remotes other unneeded files
main
Eric Amodio 2 年之前
父節點
當前提交
2e994b12ef
共有 3 個檔案被更改,包括 10 行新增4 行删除
  1. +5
    -0
      .vscodeignore
  2. +1
    -0
      CHANGELOG.md
  3. +4
    -4
      webpack.config.js

+ 5
- 0
.vscodeignore 查看文件

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

+ 1
- 0
CHANGELOG.md 查看文件

@ -43,6 +43,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### 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 [#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.

+ 4
- 4
webpack.config.js 查看文件

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

Loading…
取消
儲存