Visual Studio 2015 Cordova Ionic 2 not updating html files on build

SharpC

I'm running Visual Studio 2015 with Apache Cordova and Ionic 2.

If I update any of the html or ts files in app/pages the ripple emulator app refreshes (so detecting the updates), but the app content is still the same. Only when I update the www/build/pages files does the content update.

It doesn't seem to matter how many times I build / clean / rebuild, the only way I can update the app content is to amend the files in build rather than app.

Any ideas? Surely I should be updating app/pages and seeing the updates propagated to www/build/pages automatically, or at least on build?

SharpC

Despite scouring the internet and nearly going back to Ionic version 1 (as the lack of build made Ionic version 2 unusable, in version 1 you edit the files directly in the www folder) it turns out the solution was in the Project_Readme.html file. (Who ever reads instructions?! ;-) :-D)

The issue seemed to be connected with Gulp that handles the build (Gulpfile.js). By navigating to View -> Other Windows-> Task Runner Explorer this seems to open the Gulp build details, and for some reason having this window open seemed to trigger the proper build from app to www.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Visual Studio 2015 Cordova Ionic2がビルド時にhtmlファイルを更新しない

分類Dev

Apache Cordova Visual Studio 2015 iframe

分類Dev

where to find cordova.js in the visual studio 2015 hybrid app

分類Dev

Ionic Capacitor Gradle build failed after updating android studio to 4.0

分類Dev

Ionic Cordova Build Error

分類Dev

Freetype 2、Building Visual Studio 2015

分類Dev

Ionic 2: How to use custom build Cordova Plugin

分類Dev

Visual Studio 2015

分類Dev

Visual Studio 2015RC用のCordovaツール

分類Dev

Visual Studio 2015RTMでcordova-android @を更新しています

分類Dev

Cordovaローカルプラグイン(Visual Studio 2015)の問題

分類Dev

How to upgrade Visual Studio 2015 Update 1 to Update 2?

分類Dev

Visual Studio 2015 not finding Visual studio 2010

分類Dev

Visual Studio Code Cordova Extension

分類Dev

Why am I not able to build Vim with Visual Studio 2015 RC command line tools?

分類Dev

Visual Studio 2015 (C++) : Stop compile on first build error (not first project)

分類Dev

UnhandledPromiseRejectionWarning when ionic cordova build --release android

分類Dev

LocalDB not recognized in Visual Studio 2015

分類Dev

Cursor disappears in Visual Studio 2015

分類Dev

Visual Studio 2015 Installation Problems

分類Dev

Visual Studio Community 2015、BSoD

分類Dev

why to build large projects through make files rather than visual studio build?

分類Dev

Error Copying Typescript files when packaging Azure project - Visual Studio 2015 Update1

分類Dev

ionic cordova build ios --emulator dont show fail or success build

分類Dev

Visual Studio 2015htmlコード補完が機能しない

分類Dev

Visual Studio 2015のMicrosoft.TeamFoundation.Build.Clientはどこにありますか?

分類Dev

Visual Studio + Cordova Remotebuild failed Error: 65

分類Dev

Cordova + Visual Studio + [email protected]?

分類Dev

Visual Studio 2015、Typescriptおよびangular2とtsconfig.json

Related 関連記事

  1. 1

    Visual Studio 2015 Cordova Ionic2がビルド時にhtmlファイルを更新しない

  2. 2

    Apache Cordova Visual Studio 2015 iframe

  3. 3

    where to find cordova.js in the visual studio 2015 hybrid app

  4. 4

    Ionic Capacitor Gradle build failed after updating android studio to 4.0

  5. 5

    Ionic Cordova Build Error

  6. 6

    Freetype 2、Building Visual Studio 2015

  7. 7

    Ionic 2: How to use custom build Cordova Plugin

  8. 8

    Visual Studio 2015

  9. 9

    Visual Studio 2015RC用のCordovaツール

  10. 10

    Visual Studio 2015RTMでcordova-android @を更新しています

  11. 11

    Cordovaローカルプラグイン(Visual Studio 2015)の問題

  12. 12

    How to upgrade Visual Studio 2015 Update 1 to Update 2?

  13. 13

    Visual Studio 2015 not finding Visual studio 2010

  14. 14

    Visual Studio Code Cordova Extension

  15. 15

    Why am I not able to build Vim with Visual Studio 2015 RC command line tools?

  16. 16

    Visual Studio 2015 (C++) : Stop compile on first build error (not first project)

  17. 17

    UnhandledPromiseRejectionWarning when ionic cordova build --release android

  18. 18

    LocalDB not recognized in Visual Studio 2015

  19. 19

    Cursor disappears in Visual Studio 2015

  20. 20

    Visual Studio 2015 Installation Problems

  21. 21

    Visual Studio Community 2015、BSoD

  22. 22

    why to build large projects through make files rather than visual studio build?

  23. 23

    Error Copying Typescript files when packaging Azure project - Visual Studio 2015 Update1

  24. 24

    ionic cordova build ios --emulator dont show fail or success build

  25. 25

    Visual Studio 2015htmlコード補完が機能しない

  26. 26

    Visual Studio 2015のMicrosoft.TeamFoundation.Build.Clientはどこにありますか?

  27. 27

    Visual Studio + Cordova Remotebuild failed Error: 65

  28. 28

    Cordova + Visual Studio + [email protected]?

  29. 29

    Visual Studio 2015、Typescriptおよびangular2とtsconfig.json

ホットタグ

アーカイブ