Эх сурвалжийг харах

fix: index.html assets in body

未来全栈 3 сар өмнө
parent
commit
f630191d56

+ 4 - 4
tailor-app/myapp/angular.json

@@ -39,13 +39,13 @@
               "budgets": [
                 {
                   "type": "initial",
-                  "maximumWarning": "2mb",
-                  "maximumError": "5mb"
+                  "maximumWarning": "20mb",
+                  "maximumError": "50mb"
                 },
                 {
                   "type": "anyComponentStyle",
-                  "maximumWarning": "2kb",
-                  "maximumError": "4kb"
+                  "maximumWarning": "20mb",
+                  "maximumError": "40mb"
                 }
               ],
               "fileReplacements": [

+ 8 - 7
tailor-app/myapp/src/index.html

@@ -21,12 +21,13 @@
 
 <body>
   <app-root></app-root>
-</body>
 
+   <!--Swiper-->
+    <link rel="stylesheet" href="./assets/dist/css/swiper.min.css">
+    <script src="./assets/dist/js/swiper.min.js"></script>
+    <link rel="stylesheet" href="https://www.layuicdn.com/layui-v2.5.6/css/layui.css">
+    <script src="https://www.layuicdn.com/layui-v2.5.6/layui.js"></script>
+    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
+</body>
 </html>
- <!--Swiper-->
- <link rel="stylesheet" href="./assets/dist/css/swiper.min.css">
- <script src="./assets/dist/js/swiper.min.js"></script>
- <link rel="stylesheet" href="https://www.layuicdn.com/layui-v2.5.6/css/layui.css">
- <script src="https://www.layuicdn.com/layui-v2.5.6/layui.js"></script>
- <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
+