2018-08-25 18:48:56 +00:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
* 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 path = require('path');
|
2019-12-30 09:52:22 +00:00
|
|
|
const webpack = require('webpack');
|
2018-08-25 18:48:56 +00:00
|
|
|
|
2019-03-27 13:14:32 +00:00
|
|
|
const config = withDefaults({
|
2018-08-25 18:48:56 +00:00
|
|
|
context: path.join(__dirname, 'client'),
|
|
|
|
entry: {
|
2020-06-11 20:28:05 +00:00
|
|
|
extension: './src/node/jsonClientMain.ts'
|
2018-08-25 18:48:56 +00:00
|
|
|
},
|
|
|
|
output: {
|
2020-06-11 20:28:05 +00:00
|
|
|
filename: 'jsonClientMain.js',
|
|
|
|
path: path.join(__dirname, 'client', 'dist', 'node')
|
2021-07-08 19:41:03 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
...withDefaults.getNodePlugins(__dirname),
|
|
|
|
new webpack.IgnorePlugin({ contextRegExp: /vertx/})
|
|
|
|
]
|
2018-08-25 18:48:56 +00:00
|
|
|
});
|
2019-03-27 13:14:32 +00:00
|
|
|
|
|
|
|
|
2019-12-30 09:52:22 +00:00
|
|
|
module.exports = config;
|