Files
vscode/extensions/git/extension.webpack.config.js
2018-08-20 15:23:56 +02:00

37 lines
1.1 KiB
JavaScript

/*---------------------------------------------------------------------------------------------
* 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 withDefaults = require('../shared.webpack.config');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const myConfig = {
context: __dirname,
node: {
__dirname: false // leave the __dirname-behaviour intact
},
entry: {
main: './src/main.ts',
['askpass-main']: './src/askpass-main.ts'
},
plugins: [
new CopyWebpackPlugin([
{ from: './out/*.sh', to: '[name].sh' }
])
],
externals: {
"byline": 'commonjs byline',
"file-type": 'commonjs file-type',
"iconv-lite": 'commonjs iconv-lite',
"jschardet": 'commonjs jschardet',
"vscode-extension-telemetry": 'commonjs vscode-extension-telemetry',
"vscode-nls": 'commonjs vscode-nls',
"which": 'commonjs which',
},
};
module.exports = withDefaults(myConfig);