Browse Source

fix build cmd

Paul 5 years ago
parent
commit
f844eac74e
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      package.json
  2. 1
    1
      webpack.config.js

+ 1
- 1
package.json View File

@@ -8,7 +8,7 @@
8 8
     "type-check:watch": "npm run type-check -- --watch",
9 9
     "start": "webpack-dev-server --mode development",
10 10
     "test": "jest",
11
-    "build": "webpack --mode production --config webpack.config.js"
11
+    "build": "tsc"
12 12
   },
13 13
   "repository": {
14 14
     "type": "git",

+ 1
- 1
webpack.config.js View File

@@ -16,7 +16,7 @@ module.exports = {
16 16
       })
17 17
     ],
18 18
     output: {
19
-        filename: 'main.js',
19
+        filename: '[name].bundle.js',
20 20
         path: path.resolve(__dirname, 'dist')
21 21
     },
22 22
     resolve: { extensions: ['.js', '.jsx', '.tsx', '.ts', '.json'] },