bertramdev / asset-pipeline

The core implementation of the asset pipeline for the jvm
194 stars 93 forks source link

how to add custom folder. #174

Closed daring123 closed 6 years ago

daring123 commented 7 years ago

Hi: I don't want to put some javascript files into grails-app/assets/javascripts. I want to put them in views folder . How do I do ?

image

This is where I want to put some javascript files.

image Thanks.

davydotcom commented 7 years ago

This violates Grails convention not sure what your doing this for

Sent from my iPhone

On Aug 9, 2017, at 4:25 AM, alice notifications@github.com wrote:

Hi: I don't want to put some javascript files into grails-app/assets/javascripts. I want to put them in views folder . How do I do ?

This is where I want to put some javascript files.

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

daring123 commented 7 years ago

I want to use Vue to write the front end.It can be clear to put javascript file in the views folder.

pmamatsis commented 7 years ago

Hi to everyone, i also wanted to do this kind of thing. I have a case into which i want to put a JS file into the view folder. Imagine a case for which for every view there is a JS file which accompanies it and into which we are placing the various business logic for the front-end as a JS object.

Is there any way for this kind of feature to be added? Can i do anything to help? If yes please point to me the way. I would be really glad to help out.

Best regards and thank you in advance, Panos.

davydotcom commented 6 years ago

you can do grails-app/assets/views if you want.