【发布时间】:2015-08-08 12:36:52
【问题描述】:
我对 bower 和 grunt 很陌生,所以基本的东西对我很不利。
根据documentation,我已经bower install --save bootstrap 并希望grunt-bower-install 更新我的js 和css 文件
它适用于 .js 文件,并且我已成功更新我的 index.html
<!-- bower:js -->
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<!-- endbower -->
但我的 dist/application.css 没有改变(只是空文件)
我的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'
我应该如何处理我的 application.css 自动需要引导程序的 .css 文件?
【问题讨论】:
标签: javascript gruntjs npm bower