Fix ide support

This commit is contained in:
schmelczerandras 2020-10-07 18:35:32 +02:00
parent 1a3afe4dd0
commit e01400058d
14 changed files with 50 additions and 20 deletions

View file

@ -9,9 +9,9 @@
],
"main": "index.js",
"scripts": {
"build": "webpack --mode production",
"build": "npx webpack --mode production",
"initialize": "npm install",
"start": "webpack-dev-server --mode development",
"start": "npx webpack-dev-server --mode development",
"try-build": "npm run build && cd dist && python3 -m http.server 8080"
},
"browserslist": [

View file

@ -37,6 +37,7 @@ module.exports = (env, argv) => ({
new TerserJSPlugin({
sourceMap: false,
test: /\.js$/,
exclude: /node_modules/,
terserOptions: {
keep_classnames: true,
},
@ -109,6 +110,7 @@ module.exports = (env, argv) => ({
loader: 'ts',
target: 'es2015',
},
exclude: /node_modules/,
},
],
},