invoke webpack when bundling extensions

This commit is contained in:
Johannes Rieken
2018-08-08 16:53:55 +02:00
parent 34159e797b
commit fdb7b4bcf4
8 changed files with 1993 additions and 79 deletions

View File

@@ -0,0 +1,27 @@
/*---------------------------------------------------------------------------------------------
* 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: 'none',
target: 'node',
context: __dirname,
entry: {
main: './out/main.js',
askpass: './out/askpass-main.js'
},
output: {
filename: '[name].bundle.js',
path: path.join(__dirname, 'dist'),
libraryTarget: "commonjs"
},
externals: {
'vscode': 'commonjs vscode',
},
stats: 'errors-only'
};