How to use the vscode-azureextensiondev.getDefaultWebpackConfig function in vscode-azureextensiondev

To help you get started, we’ve selected a few vscode-azureextensiondev examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / vscode-azurearmtools / webpack.config.js View on Github external
*  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("vscode-azureextensiondev");

let DEBUG_WEBPACK = !!process.env.DEBUG_WEBPACK;

let config = dev.getDefaultWebpackConfig({
    projectRoot: __dirname,
    verbosity: DEBUG_WEBPACK ? 'debug' : 'normal'
});

if (DEBUG_WEBPACK) {
    console.log('Config:', config);
}

module.exports = config;
github microsoft / vscode-cosmosdb / webpack.config.js View on Github external
//@ts-check

// See https://github.com/Microsoft/vscode-azuretools/wiki/webpack for guidance

'use strict';

const process = require('process');
const webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const StringReplacePlugin = require("string-replace-webpack-plugin");
const dev = require("vscode-azureextensiondev");

let DEBUG_WEBPACK = !!process.env.DEBUG_WEBPACK;

let config = dev.getDefaultWebpackConfig({
    projectRoot: __dirname,
    verbosity: DEBUG_WEBPACK ? 'debug' : 'normal',

    externalNodeModules: [
        // Modules that we can't easily webpack for some reason.
        // These and their dependencies will be copied into node_modules rather than placed in the bundle
        // Keep this list small, because all the subdependencies will also be excluded
        'require_optional',
        'gremlin',
        'socket.io',
        'mongodb',

        // Needed by graphClient.html
        'd3'
    ],
    entries: {

vscode-azureextensiondev

Common dev dependency tools for developing Azure extensions for VS Code

MIT
Latest version published 3 years ago

Package Health Score

58 / 100
Full package analysis