提交 34159e79 编写于 作者: J Johannes Rieken

adding webpack.config.js

上级 96a0a437
......@@ -15,7 +15,7 @@
"activationEvents": [
"*"
],
"main": "./out/main",
"main": "./dist/main",
"icon": "resources/icons/git.png",
"scripts": {
"compile": "gulp compile-extension:git",
......@@ -912,7 +912,9 @@
"type": "boolean",
"description": "%config.autofetch%",
"default": false,
"tags": ["usesOnlineServices"]
"tags": [
"usesOnlineServices"
]
},
"git.confirmSync": {
"type": "boolean",
......@@ -1199,6 +1201,8 @@
"@types/mocha": "2.2.43",
"@types/node": "7.0.43",
"@types/which": "^1.0.28",
"mocha": "^3.2.0"
"mocha": "^3.2.0",
"webpack": "^4.16.5",
"webpack-cli": "^3.1.0"
}
}
\ No newline at end of file
}
......@@ -77,7 +77,7 @@ export async function activate(context: ExtensionContext): Promise<API> {
commands.registerCommand('git.showOutput', () => outputChannel.show());
disposables.push(outputChannel);
const { name, version, aiKey } = require(context.asAbsolutePath('./package.json')) as { name: string, version: string, aiKey: string };
const { name, version, aiKey } = require('../package.json') as { name: string, version: string, aiKey: string };
const telemetryReporter = new TelemetryReporter(name, version, aiKey);
deactivateTasks.push(() => telemetryReporter.dispose());
......
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
const path = require('path');
module.exports = {
mode: 'production',
target: 'node',
entry: './out/main.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: "commonjs"
},
externals: {
'vscode': 'commonjs vscode',
},
devtool: 'source-map'
};
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册