My Imports are not imported in the outputted main.css file, normally main.css should be filled with the css of bootstrap, fontawesome, animate etecetera...
but they are showing up like this @import "bootstrap.min.css";@import "font-awesome.min.css";@import "animate.css";...
This is my gruntfile.js
module.exports = function (grunt)
{
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-less');
var userConfig = require( './build.config.js' );
var taskConfig = {
watch: {
styles: {
files: ['<%= less_dir %>/**/*.less'], // which files to watch
tasks: [ 'less'],
options: {
nospawn: true
}
}
},
less: {
development: {
options: {
compress: true,
yuicompress: true,
optimization: 2
},
files: {
"<%= css_dir %>/main.css": "<%= less_dir %>/main.less"
}
}
}
};
grunt.initConfig( grunt.util._.extend( taskConfig, userConfig ) );
};
My main.less
/* - Imports - */
@import "bootstrap.min.css";
@import "font-awesome.min.css";
@import "animate.css";
@import "variables";