Fix ide support
This commit is contained in:
parent
1a3afe4dd0
commit
e01400058d
14 changed files with 50 additions and 20 deletions
|
|
@ -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": [
|
||||
|
|
|
|||
|
|
@ -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/,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue