Skip to content

Commit

Permalink
compass mixins replaced and grunt-sass implemented; A way to fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Pendrokar committed Jul 22, 2019
1 parent 1442037 commit 237ddf0
Show file tree
Hide file tree
Showing 6 changed files with 3,144 additions and 850 deletions.
26 changes: 16 additions & 10 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
const sass = require('sass');
var grunt = require("grunt");

require('load-grunt-tasks')(grunt);

module.exports = function(grunt) {
grunt.initConfig({
compass: {
dist: {
sass: {
options: {
config: 'config.rb'
implementation: sass,
sourceMap: false,
outputStyle: 'compressed'
},
dist: {
files: {
'css/main.css': 'sass/main.scss'
}
}
}
},
}

// uglify: {
// my_target: {
Expand All @@ -17,11 +27,7 @@ module.exports = function(grunt) {
// }
});

grunt.loadNpmTasks('grunt-contrib-compass');
// grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('default', ['compass',]); // 'uglify'

grunt.registerTask('minifycss', ['compass']);
// grunt.registerTask('minifyjs', ['uglify']);
grunt.registerTask('default', ['sass']);
};
2 changes: 1 addition & 1 deletion css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 237ddf0

Please sign in to comment.