Skip to content

Instantly share code, notes, and snippets.

@schovi
Created August 20, 2013 21:27
Show Gist options
  • Save schovi/6287552 to your computer and use it in GitHub Desktop.
Save schovi/6287552 to your computer and use it in GitHub Desktop.
grunt.config.init
less:
options:
paths: ["src/css/"]
build:
options:
compress: true
stripBanners:
block: true
line: true
files:
'tmp/css/main.css': ['tmp/css/main.less']
cssmin:
options:
report: 'gzip'
build:
files:
'build/css/main.css': ['tmp/css/main.css']
keepalive: false
grunt.registerTask "deploy", "Build and deploy", () ->
tasks = [
"less:build"
"cssmin:build"
]
grunt.task.run tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment