How do I get Grunt to include bootstrap-theme.css in my build?

I use the default gruntfile.js

one built by Yeoman. It looks like it should contain a file bootstrap-theme.css

that is in the directory bower_components

, but the resulting page doesn't show those styles. What am I missing?

Update: I don't know if this is the right way to do this, but I found that if I add <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.css" />

to the block build:css(.tmp) styles/main.css

, the file is found and included. I haven't tested the grunt build, only serve (but I assume it works).

+3


source to share


1 answer


I had the same problem because the css file has a dash -

.

in Gruntfile.js

you can find regex that will find all css files:



files: ['<%= yeoman.app %>/styles/{,*/}*.css'],

      

In my case, I don't change this line, just rename / remove the dash and it works fine.

+1


source







All Articles