Files
vscode/extensions/emmet/extension.webpack.config.js

30 lines
769 B
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 path = require('path');
module.exports = {
stats: 'errors-only',
// mode: 'none', // default is production
context: __dirname,
target: 'node',
resolve: {
mainFields: ['main']
},
entry: {
extension: './out/extension.js',
},
output: {
filename: '[name].js',
path: path.join(__dirname, 'dist'),
libraryTarget: "commonjs",
},
externals: {
'vscode': 'commonjs vscode',
},
};