Any changes to the code are not reflected on the build apk.
Terumi last edited by
I’m trying to make an application using onsen with vue.js and cordova.
I installed all java dependencies to my mac, I made a new project using monaca cli tool, I entered the www folder and wrote some code.
The browser shows the app I made, but when I do
cordova build android
The .apk extracted does not reflect the changes I made to the code.
You need to run
npm run build:watchwhile making changes to your app. This command will update your source files under
wwwfolder which will then be used to build your app later.
@Terumi @khemry To be more precise, your source files are under
srcfolder. You should not modify
wwwfolder because those are automatically generated files. While developing,
monaca previewwill cache your files in memory but it will not generate files in the disk. Therefore, whenever you want to build locally using Cordova, you need to generate the files by running
If you used Vue CLI to create the project instead of Monaca CLI, then you’ll need to run
npm run devinstead of
npm run buildinstead of