Add custom js file to JHipster -


i'm trying include javascript file not available bower.

so copied src/main/webapp/content , referenced in index.html

in dev profile fine -- works.

now, after generating war file prod profile, custom.js file not included in war (tried unpack -- file not there).

i have discovered gulp merging css , js files, did miss config this?

when app loaded, browser complains 404 in index.html -- js file not found.

how can fix this? right way include js (or css) file jhipster app?

thank you.

js not expected in content folder.

for css, copy file src/main/webapp/content/css.

for js, copy file src/main/webapp/app possibly in dedicated sub folder.

you don't have inject them in index.html, gulp you. suppose did not see in dev profile because not running gulp serve as explained in doc


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -