Explorar el Código

fix build cmd

Paul hace 5 años
padre
commit
f844eac74e
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1
    1
      package.json
  2. 1
    1
      webpack.config.js

+ 1
- 1
package.json Ver fichero

@@ -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 Ver fichero

@@ -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'] },