update css/html/json dependencies and webpack cleanup (fixes #57431, fixes #58417)

This commit is contained in:
Martin Aeschlimann
2018-09-19 16:52:42 +02:00
parent d216f0e06e
commit 2dd4d2b56f
22 changed files with 133 additions and 216 deletions

View File

@@ -8,7 +8,6 @@
'use strict';
const withDefaults = require('../shared.webpack.config');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
module.exports = withDefaults({
@@ -18,16 +17,6 @@ module.exports = withDefaults({
},
output: {
filename: 'htmlMain.js',
path: path.join(__dirname, 'client', 'dist'),
libraryTarget: "commonjs",
},
externals: {
'./files': 'commonjs', // ignored because it doesn't exist
},
plugins: [
new CopyWebpackPlugin([
{ from: './out/*.sh', to: '[name].sh' },
{ from: './out/nls.*.json', to: '[name].json' }
])
]
path: path.join(__dirname, 'client', 'dist')
}
});