This commit is contained in:
Johannes Rieken
2018-08-21 10:27:03 +02:00
parent d259a977b6
commit 07796186d3
2 changed files with 4 additions and 7 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ const myConfig = {
},
plugins: [
new CopyWebpackPlugin([
{ from: './out/*.sh', to: '[name].sh' }
{ from: './out/*.sh', to: '[name].sh' },
{ from: './out/nls.*.json', to: '[name].json' }
])
],
externals: {
+2 -6
View File
@@ -6,7 +6,6 @@
'use strict';
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const merge = require('merge-options');
module.exports = function withDefaults(extConfig) {
@@ -39,9 +38,6 @@ module.exports = function withDefaults(extConfig) {
}]
}]
},
plugins: [
new CopyWebpackPlugin([{ from: './out/nls.*.json', to: '[name].json' }]) // copy nls files
],
externals: {
'vscode': 'commonjs vscode', // ignored because it doesn't exist
},
@@ -54,7 +50,7 @@ module.exports = function withDefaults(extConfig) {
},
// yes, really source maps
devtool: 'source-map'
}
};
return merge(defaultConfig, extConfig);
}
};