Paul 5 gadus atpakaļ
vecāks
revīzija
f844eac74e
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1
    1
      package.json
  2. 1
    1
      webpack.config.js

+ 1
- 1
package.json Parādīt failu

@@ -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 Parādīt failu

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