Files
vscode/extensions/emmet/extension.webpack.config.js
Johannes Rieken 4bdf15ba9e pack emmet
2018-08-09 12:07:01 +02:00

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