-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathwebpack.config.js
More file actions
27 lines (19 loc) · 858 Bytes
/
webpack.config.js
File metadata and controls
27 lines (19 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
//@ts-check
// See https://github.com/Microsoft/vscode-azuretools/wiki/webpack for guidance
'use strict';
const process = require('process');
const dev = require("@microsoft/vscode-azext-dev");
let DEBUG_WEBPACK = !/^(false|0)?$/i.test(process.env.DEBUG_WEBPACK || '');
let config = dev.getDefaultWebpackConfig({
projectRoot: __dirname,
target: 'node',
verbosity: DEBUG_WEBPACK ? 'debug' : 'normal'
});
if (DEBUG_WEBPACK) {
console.log('Config:', config);
}
module.exports = config;