Grails Asset-Pipeline system with 3rd party libs

前端 未结 5 2143
长情又很酷
长情又很酷 2021-02-07 04:59

Grails 2.4 is now using the Asset Pipeline for managing and processing static assets in Grails applications instead of the Resources system. Th

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 05:29

    To handle 3rd party libraries, you can add flipcountdown folder inside assets folder,

        ├── assets
        │   ├── flipcountdown
        │   │   ├── admin
        │   │   └── global
        │   ├── images
        │   │   ├── apple-touch-icon.png
        │   │   ├── apple-touch-icon-retina.png
        │   │   ├── favicon.ico
        │   │   ├── grails_logo.png
        │   │   ├── skin
        │   │   ├── spinner.gif
        │   │   └── springsource.png
        │   ├── javascripts
        │   │   ├── application.js
        │   │   └── jquery-2.1.3.js
        │   └── stylesheets
        │       ├── application.css
        │       ├── errors.css
        │       ├── main.css
        │       └── mobile.css
    
    

    Now you can reference css and js using normal syntax,

    
    
    
    

提交回复
热议问题