Fix mismatching function names
This commit is contained in:
parent
f1a2131540
commit
6694e353ad
4 changed files with 30 additions and 15 deletions
|
|
@ -40,6 +40,7 @@
|
|||
"sdf-2d": "^0.6.0",
|
||||
"socket.io-client": "^2.3.1",
|
||||
"source-map-loader": "^1.1.1",
|
||||
"terser-webpack-plugin": "^4.2.2",
|
||||
"ts-config-webpack-plugin": "^2.0.0",
|
||||
"typescript": "^4.0.3",
|
||||
"webpack": "^4.43.0",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|||
const ScssConfigWebpackPlugin = require('scss-config-webpack-plugin');
|
||||
const TsConfigWebpackPlugin = require('ts-config-webpack-plugin');
|
||||
const HtmlWebpackInlineSVGPlugin = require('html-webpack-inline-svg-plugin');
|
||||
const TerserJSPlugin = require('terser-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
devServer: {
|
||||
|
|
@ -34,6 +35,17 @@ module.exports = {
|
|||
// see https://github.com/namics/webpack-config-plugins/tree/master/packages/ts-config-webpack-plugin/config
|
||||
new TsConfigWebpackPlugin(),
|
||||
],
|
||||
optimization: {
|
||||
minimizer: [
|
||||
new TerserJSPlugin({
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
terserOptions: {
|
||||
keep_classnames: true,
|
||||
},
|
||||
}),
|
||||
],
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue