padippist
padippist

Reputation: 1206

Integrating Bootstrap in Grails 2.0.1

I tried to integrate bootstrap in grails. I followed official documentation. https://github.com/groovydev/twitter-bootstrap-grails-plugin/blob/master/README.md

I added this in my BuildConfig.groovy

 runtime ':twitter-bootstrap:3.3.5'

The next step according to the documentation is to add:

Javascript grails-app/assets/javascripts/application.js:

//= require bootstrap

console.log("My javascript goes here");

Stylesheet grails-app/assets/javascripts/application.css:

/*
*= require bootstrap
*/

But I do not have a

"grails-app/assets/javascripts/"

I also tried adding

compile ":twitter-bootstrap:3.3.4"

and

compile ":twitter-bootstrap:3.3.5"

but it also did not work.

Upvotes: 0

Views: 90

Answers (1)

user3718614
user3718614

Reputation: 530

Probably you are not using asset-pipeline plugin. In first versions of grails2 default was resources plugin.

Upvotes: 1

Related Questions