Files
vscode/extensions/emmet/extension.webpack.config.js
2018-08-09 18:29:05 +02:00

39 lines
887 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: 'production',
// mode: 'none',
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',
},
stats: 'errors-only',
devtool: 'source-map',
module: {
rules: [{
test: /\.js$/,
use: ["source-map-loader"],
enforce: "pre"
}]
}
};