As someone who is relatively new to bower and grunt, I'm struggling with some basic tasks.
After running bower install --save bootstrap
, my goal is to use grunt-bower-install
to update my js & css files as per the instructions on their documentation.
The process worked smoothly for the .js files and I successfully updated my index.html
<!-- bower:js -->
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<!-- endbower -->
However, my dist/application.css file remained unchanged (just an empty file)
Here's a snippet from my Gruntfile.coffee
:
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
compile:
files:
'dist/application.js': 'app/assets/javascripts/*.coffee'
bowerInstall:
target:
src: [
'index.html'
'dist/application.css'
]
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-bower-install'
What steps should I take to ensure that my application.css automatically includes bootstrap's .css
files?