久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='udpy8'></tfoot>

        <small id='udpy8'></small><noframes id='udpy8'>

      1. <i id='udpy8'><tr id='udpy8'><dt id='udpy8'><q id='udpy8'><span id='udpy8'><b id='udpy8'><form id='udpy8'><ins id='udpy8'></ins><ul id='udpy8'></ul><sub id='udpy8'></sub></form><legend id='udpy8'></legend><bdo id='udpy8'><pre id='udpy8'><center id='udpy8'></center></pre></bdo></b><th id='udpy8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='udpy8'><tfoot id='udpy8'></tfoot><dl id='udpy8'><fieldset id='udpy8'></fieldset></dl></div>
        <legend id='udpy8'><style id='udpy8'><dir id='udpy8'><q id='udpy8'></q></dir></style></legend>
          <bdo id='udpy8'></bdo><ul id='udpy8'></ul>

        如何連接我的 angular2 應(yīng)用程序 javascript 文件

        How do I concattinate my angular2 app javascript files(如何連接我的 angular2 應(yīng)用程序 javascript 文件)

              <tbody id='7G7vl'></tbody>
          1. <small id='7G7vl'></small><noframes id='7G7vl'>

          2. <tfoot id='7G7vl'></tfoot>
            <legend id='7G7vl'><style id='7G7vl'><dir id='7G7vl'><q id='7G7vl'></q></dir></style></legend>

              • <bdo id='7G7vl'></bdo><ul id='7G7vl'></ul>
                • <i id='7G7vl'><tr id='7G7vl'><dt id='7G7vl'><q id='7G7vl'><span id='7G7vl'><b id='7G7vl'><form id='7G7vl'><ins id='7G7vl'></ins><ul id='7G7vl'></ul><sub id='7G7vl'></sub></form><legend id='7G7vl'></legend><bdo id='7G7vl'><pre id='7G7vl'><center id='7G7vl'></center></pre></bdo></b><th id='7G7vl'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='7G7vl'><tfoot id='7G7vl'></tfoot><dl id='7G7vl'><fieldset id='7G7vl'></fieldset></dl></div>
                  本文介紹了如何連接我的 angular2 應(yīng)用程序 javascript 文件的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  對(duì)于我的 angular2 typescript 應(yīng)用程序,我將所有 js 文件合并到一個(gè) app.min.js 文件中,然后將該文件 System.import 到我的 index.html 頁(yè)面.

                  For my angular2 typescript app I concat all my js files into one app.min.js file, then System.import this file to my index.html page.

                  然后,我的控制臺(tái)日志中出現(xiàn)多個(gè)匿名 System.register 調(diào)用在同一個(gè)模塊文件中錯(cuò)誤.

                  I then get a Multiple anonymous System.register calls in the same module file error in my console log.

                  我將所有 Javascript 文件(不是庫(kù))放入 app.min.js 中,然后在我的 index.html 頁(yè)面上使用 system.import 導(dǎo)入該文件以導(dǎo)入該 js 文件.

                  I put all my Javascript files (not libraries) into app.min.js and then on my index.html page I then import the file using system.import to import that js file.

                  當(dāng)我將所有 Javascript 文件合并到一個(gè)文件中時(shí),我會(huì)按照一定的順序進(jìn)行操作.

                  When I concat all the Javascript files into one file I do them in a certain order.

                  也許我的配置中缺少一些參考或設(shè)置?

                  Maybe I'm missing some references or settings in my configs?

                  這是我的 index.html 頁(yè)面:

                  <!DOCTYPE html>
                  <html lang="en" prefix="og: http://ogp.me/ns#" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
                    <head>
                      <base href="/"></base>
                  
                      <meta charset="UTF-8">
                      <meta name="fragment" content="!"/>
                      <meta content="IE=edge, chrome=1" http-equiv="X-UA-Compatible"/>
                      <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=0.5, user-scalable=yes"/>
                  
                  
                      <!-- inject:css -->    
                         <link rel="stylesheet" href="/src/css/styles.af010955.css">    
                      <!-- endinject -->
                  
                      <!-- Js libs -->    
                      <script type="text/javascript" src="https://cdn.jsdelivr.net/lodash/4.11.2/lodash.min.js"></script>
                      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
                      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>        
                      <script type="text/javascript" src="/bootstrap.js"></script>    
                  
                      <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-shim.min.js"></script>    
                      <script type="text/javascript" src="/safariPolyFix.js"></script>    
                      <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.18.4/system.src.js"></script>   
                  
                      <script>
                          System.config({
                              transpiler: 'typescript',
                              defaultJSExtensions: true,  
                              typescriptOptions: {
                                  emitDecoratorMetadata: true,
                              },          
                              packages: {
                                  'angular2-google-maps': {
                                    defaultExtension: 'js'
                                  }
                              }
                          });       
                      </script>
                  
                      <script type="text/javascript" src="/angular2_google_maps.js"></script>
                  
                      <script type="text/javascript" src="https://code.angularjs.org/2.0.0-beta.0/angular2-polyfills.js"></script>
                      <script type="text/javascript" src="https://code.angularjs.org/tools/typescript.js"></script>
                      <script type="text/javascript" src="https://code.angularjs.org/2.0.0-beta.0/Rx.js"></script>
                  
                      <script type="text/javascript" src="https://code.angularjs.org/2.0.0-beta.0/angular2.js"></script>
                      <script type="text/javascript" src="https://code.angularjs.org/2.0.0-beta.0/router.js"></script>
                      <script type="text/javascript" src="https://code.angularjs.org/2.0.0-beta.0/http.js"></script>  
                  
                      <script type="text/javascript" src="/firebase/firebaseNew.js"></script>
                  
                    </head>
                  
                    <body id="container">
                  
                      <app></app>
                  
                      <script type="text/javascript">  
                        System.import('/app/app.min.js');
                      </script>
                  
                    </body>
                  </html>
                  

                  這是我的 gulp 文件:

                  var gulp = require('gulp');
                  var concat = require('gulp-concat');
                  
                  gulp.task('app', function() {
                      return gulp.src(['src/app/app.component.js', 'src/app/*.js', 'src/app/filters/*.js', 'src/app/models/**/*.js', 'src/app/components/**/*.js', 'src/app/services/**/*.js'])
                          .pipe(concat('app.min.js'))
                          .pipe(gulp.dest('src/app'));
                  });
                  
                  gulp.task('default', ['app']);
                  

                  這是我的 tsconfig.json

                  {
                    "compilerOptions": {
                      "target": "ES5",
                      "module": "system",
                      "moduleResolution": "node",
                      "sourceMap": true,
                      "emitDecoratorMetadata": true,
                      "experimentalDecorators": true,
                      "removeComments": false,
                      "noImplicitAny": false
                    },
                    "exclude": [
                      "node_modules"
                    ]
                  }
                  

                  這是我的錯(cuò)誤屏幕截圖:

                  這是瀏覽器控制臺(tái)中的源文件:

                  推薦答案

                  其實(shí)你不能自己concat typescript編譯器生成的js文件.

                  In fact you can't concat js files by your own that are generated by the typescript compiler.

                  如果您想將它們?nèi)糠旁谝粋€(gè)文件中,則需要在 tsconfig.json 文件中利用編譯器的 outFile 屬性:

                  If you want to have all of them in a single file, you need to leverage the outFile property of the compiler in the tsconfig.json file:

                  {
                    "compilerOptions": {
                      "target": "ES5",
                      "module": "system",
                      "moduleResolution": "node",
                      "sourceMap": true,
                      "emitDecoratorMetadata": true,
                      "experimentalDecorators": true,
                      "removeComments": false,
                      "noImplicitAny": false,
                      "outFile": "app.js" <-------
                    },
                    "exclude": [
                      "node_modules"
                    ]
                  }
                  

                  這篇關(guān)于如何連接我的 angular2 應(yīng)用程序 javascript 文件的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運(yùn)算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標(biāo)志傳遞給 Gulp 以使其以不同的方式運(yùn)行任務(wù)?)
                  Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
                  How to run Gulp tasks sequentially one after the other(如何一個(gè)接一個(gè)地依次運(yùn)行 Gulp 任務(wù))
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時(shí) Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測(cè) FLASH 插件崩潰)

                    <tfoot id='A2vWd'></tfoot><legend id='A2vWd'><style id='A2vWd'><dir id='A2vWd'><q id='A2vWd'></q></dir></style></legend>

                    <i id='A2vWd'><tr id='A2vWd'><dt id='A2vWd'><q id='A2vWd'><span id='A2vWd'><b id='A2vWd'><form id='A2vWd'><ins id='A2vWd'></ins><ul id='A2vWd'></ul><sub id='A2vWd'></sub></form><legend id='A2vWd'></legend><bdo id='A2vWd'><pre id='A2vWd'><center id='A2vWd'></center></pre></bdo></b><th id='A2vWd'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='A2vWd'><tfoot id='A2vWd'></tfoot><dl id='A2vWd'><fieldset id='A2vWd'></fieldset></dl></div>

                  • <small id='A2vWd'></small><noframes id='A2vWd'>

                      <bdo id='A2vWd'></bdo><ul id='A2vWd'></ul>

                            <tbody id='A2vWd'></tbody>
                            主站蜘蛛池模板: 亚洲永久精品国产 | 中文字幕亚洲一区 | 九九热国产精品视频 | 欧美一区二区在线观看 | 在线午夜 | 欧美一区免费在线观看 | 激情毛片 | 国产线视频精品免费观看视频 | 欧美日韩在线一区二区 | 久久精品国产免费一区二区三区 | 国产一在线观看 | 99久久国产综合精品麻豆 | 日韩乱码av | 欧洲精品一区 | 最新国产在线 | 亚洲免费在线视频 | 视频一区二区三区中文字幕 | 午夜精品久久久久久久久久久久久 | 成人免费看电影 | 日日久| 国产精品久久久久久久午夜 | 精品国产黄a∨片高清在线 www.一级片 国产欧美日韩综合精品一区二区 | 日本精品一区二区三区在线观看 | 网站黄色在线免费观看 | 久久精品免费一区二区 | 91欧美激情一区二区三区成人 | 美女视频一区二区三区 | 亚洲二区在线 | 国产精品亚洲片在线播放 | 一级视频黄色 | 精品免费国产一区二区三区四区 | av天天干| 久久国产精品偷 | 一色桃子av一区二区 | 在线国产一区二区三区 | 亚洲精品免费视频 | 综合九九 | 成人av播放 | 国产亚洲精品成人av久久ww | 毛片av免费在线观看 | 亚洲视频区 |