[Grunt Serve Dist] How to copy file to distribution package without including in index.html


#1

I am using ionic however i have use case where I need to copy “javascript file” to “www/script” folder (using grunt serve:dist) without including it in index.html. because I am loading the javascript file dynamically inside javascript script.

if using yeoman " " it will only include all files inside the build.js.


#2

sounds like you need to modify the grunt file OR use the cordova/phonegap hooks to move the file?

http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/


#3

Thanks. yeah, agree seems like that will be the case.