Procházet zdrojové kódy

Fix: rename bundle.js to app.js for dist build

bodicsek před 7 roky
rodič
revize
4b8759ddfd
3 změnil soubory, kde provedl 15 přidání a 2 odebrání
  1. 14 0
      .vscode/tasks.json
  2. 0 1
      src/index.html
  3. 1 1
      systemjs.build.js

+ 14 - 0
.vscode/tasks.json

@@ -0,0 +1,14 @@
+{
+    // See https://go.microsoft.com/fwlink/?LinkId=733558
+    // for the documentation about the tasks.json format
+    "version": "2.0.0",
+    "tasks": [
+        {
+            "type": "npm",
+            "script": "build",
+            "problemMatcher": [
+                "$tsc"
+            ]
+        }
+    ]
+}

+ 0 - 1
src/index.html

@@ -3,7 +3,6 @@
 <head>
     <script src="libs/systemjs/dist/system.js"></script>
     <script src="systemjs.config.js"></script>
-    <script src="bundle.js"></script>
     <script>
         SystemJS.import("app").catch(function(err){ console.error(err); });
     </script>

+ 1 - 1
systemjs.build.js

@@ -4,4 +4,4 @@ var Builder = require("systemjs-builder");
 var builder = new Builder("./build", "build/systemjs.config.js");
  
 // run the bundler
-builder.bundle("./build/app.js", "./dist/bundle.js", { uglify: false, minify: true, mangle: true });
+builder.bundle("./build/app.js", "./dist/app.js", { uglify: false, minify: true, mangle: true });