mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
37 lines
1.1 KiB
JavaScript
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);
|