Permalink
Browse files

adding cssmin

  • Loading branch information...
afshinm committed Aug 1, 2016
1 parent 7738451 commit 592430594b42ac57c9967ebbd95ca1cf4d45ba5d
Showing with 18 additions and 3 deletions.
  1. +9 −2 Gruntfile.js
  2. +7 −0 build/scrollanim.min.css
  3. +1 −1 example/index.html
  4. +1 −0 package.json
View
@@ -1,5 +1,4 @@
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
@@ -17,13 +16,21 @@ module.exports = function(grunt) {
src: './build/scrollanim.js',
dest: 'build/scrollanim.min.js'
}
},
cssmin: {
target: {
files: {
'./build/scrollanim.min.css': ['./scrollanim.css']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-cssmin');
// Default task(s).
grunt.registerTask('default', ['concat', 'uglify']);
grunt.registerTask('default', ['cssmin', 'concat', 'uglify']);
};
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="./css/kissui.css">
<link rel="stylesheet" href="../scrollanim.css">
<link rel="stylesheet" href="../build/scrollanim.min.css">
<link rel="icon" type="image/x-icon" href="./images/favicon.ico" />
</head>
<body>
View
@@ -29,6 +29,7 @@
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-concat": "^1.0.1",
"grunt-contrib-cssmin": "^1.0.1",
"grunt-contrib-uglify": "^2.0.0"
}
}

0 comments on commit 5924305

Please sign in to comment.