bundle into dist folder, copy ask-pass shell scripts into dist, some 💄

This commit is contained in:
Johannes Rieken
2018-08-09 15:31:31 +02:00
parent 4bdf15ba9e
commit 776e491ba4
9 changed files with 94 additions and 26 deletions

View File

@@ -8,23 +8,22 @@
const path = require('path');
module.exports = {
// mode: 'none',
mode: 'production',
target: 'node',
stats: 'errors-only',
// mode: 'none', // default is production
context: __dirname,
target: 'node',
resolve: {
mainFields: ['main']
},
entry: {
main: './out/extension.js',
extension: './out/extension.js',
},
output: {
filename: '[name].bundle.js',
path: path.join(__dirname, 'out'),
filename: '[name].js',
path: path.join(__dirname, 'dist'),
libraryTarget: "commonjs",
},
externals: {
'vscode': 'commonjs vscode',
},
resolve: {
mainFields: ['main']
},
stats: 'errors-only'
};