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

+ 1
- 1
webpack.config.js View File

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