-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not including my html assets ? #336
Comments
Need to see your file structure all files are processed including html Sent from my iPhone
|
I have same problem...at grails 3.14/3.1.5 and grails-asset-pipeline 3.x and maybe same reason - AngularJs Annotate Asset-Pipeline not working... |
I got around my issues.. https://github.com/grails/grails-profile-repository/issues/69#issuecomment-209396158 just be careful with the convention for the templates - i.e. the naming of the html file and the fact that you are supposed to leave out '/templates/' from the url |
@walshe are you OK with making and running war? |
didn't try yet actually, what should I test exactly.. I can try |
@walshe thx...^^ |
ok i checked there all seems fine, my proj uses the asset pipeline so when I look in the chrome console for example I just see a minified blob of js. also, if you are runnig the war from the command line make sure you cd into the build/libs folder first otherwise grails gets confused with paths ( grails/grails-core#9302 ). Are you sure you have the naming convention on the templates correct ? and also the convention for the path in the $routeProvider config $routeProvider. |
whats your build.gradle? |
heres mine `buildscript {
} version "0.1" apply plugin:"eclipse" ext { repositories { dependencyManagement { dependencies {
} task wrapper(type: Wrapper) { } karma {
} assets { |
This, unfortunately, did not solve my issue. When I run 'grails war' i notice the converted templateName.js files in my webapps/myApp/assets .. but those js files created do not come bundled in my application.js. For me, it's Grails 3.1.10, asset-pipeline-gradle 2.8.2, and angular-template-asset-pipeline 2.2.6 |
What is at the top of the application js file?
… On Jan 23, 2017, at 9:50 AM, Ryan Kirby ***@***.***> wrote:
|
Also what folder exactly are the templates in
… On Jan 23, 2017, at 9:50 AM, Ryan Kirby ***@***.***> wrote:
|
Templates are exactly located in grails-app/assets/javascripts/myApp/templates The top of the application.js is specifically moment.js for me. Everything else besides the templateName.js files seems to be bundling in ( i have yet to get it to minify, however ). Works great in run-app. When 'grails war' is used, is any of the assets configurations from application.groovy used? Or is it strictly from the build.grade file? |
If my application.groovy has some assets configuration (per environment), and my build.gradle file has assets configuration... and i run 'grails war -Dgrails.env=development' does it pull configurations from application.groovy over build.gradle? |
After i figured out which config file the configuraitons where coming from (run-app -> application.groovy, grails war -> build.gradle) ... i figured it out. I got it to work with the following steps...
Important takeaway here is that grails-app/assets/javascripts/templates would not work for me. |
I am having the same problem (grails 3.1.14). The above solution did not work. |
I'm having similar issue where my wrapped ` //= wrapped
` |
Im using grails 3.1.3 which uses this plugin as far as I know.
For some reason my angular html templates are not getting processed by the plugin (however if i put a .js file in the directory is does get processed)
whats the asiest way for me to tell it to allow html files to be processed, docs not so clear for me
thanks
The text was updated successfully, but these errors were encountered: