Files
vscode/extensions/git/extension.webpack.config.js
2018-08-21 16:40:02 +02:00

39 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.
*--------------------------------------------------------------------------------------------*/
//@ts-check
'use strict';
const withDefaults = require('../shared.webpack.config');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = withDefaults({
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' },
{ from: './out/nls.*.json', to: '[name].json' }
])
],
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',
},
});