Skip to content

Commit

Permalink
Added minified and updated Gruntfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lipis committed Sep 24, 2013
1 parent bb62d45 commit ec75cd1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@ module.exports = (grunt)->
TARGET_DIR = "css"

grunt.initConfig
pkg: grunt.file.readJSON('package.json')
clean:
main:
src: TARGET_DIR

less:
app_css:
src: "#{SRC_DIR}/country-flag-icons.less"
dest: "#{TARGET_DIR}/country-flag-icons.css"
src: "#{SRC_DIR}/<%= pkg.name %>.less"
dest: "#{TARGET_DIR}/<%= pkg.name %>.css"

cssmin:
app_css:
src: "#{TARGET_DIR}/country-flag-icons.css"
dest: "#{TARGET_DIR}/country-flag-icons.min.css"
src: "#{TARGET_DIR}/<%= pkg.name %>.css"
dest: "#{TARGET_DIR}/<%= pkg.name %>.min.css"

watch:
build:
Expand All @@ -27,7 +28,7 @@ module.exports = (grunt)->
css:
options:
livereload: true
files: "#{TARGET_DIR}/country-flag-icons.css"
files: "#{TARGET_DIR}/<%= pkg.name %>.css"
html_templates:
options:
livereload: true
Expand Down
Loading

0 comments on commit ec75cd1

Please sign in to comment.