Skip to content

Commit b1b9c76

Browse files
author
Ken Earley
committed
Use concat to add license banner to css file.
1 parent 4763a9c commit b1b9c76

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

‎Gruntfile.coffee‎

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ module.exports = (grunt) ->
77
grunt.initConfig
88
pkg: grunt.file.readJSON("package.json")
99
comments: """
10-
/*************************************************************************
11-
* Chosen, a Select Box Enhancer for jQuery and Prototype
12-
* by Patrick Filler for Harvest, http://getharvest.com
13-
*
14-
* Version <%= pkg.version %>
15-
* Full source at https://github.com/harvesthq/chosen
16-
* Copyright (c) 2011 Harvest http://getharvest.com
17-
*
18-
* MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
19-
* This file is generated by `grunt build`, do not edit it by hand.
20-
*************************************************************************/\n
10+
/*!
11+
Chosen, a Select Box Enhancer for jQuery and Prototype
12+
by Patrick Filler for Harvest, http://getharvest.com
13+
14+
Version <%= pkg.version %>
15+
Full source at https://github.com/harvesthq/chosen
16+
Copyright (c) 2011 Harvest http://getharvest.com
17+
18+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
19+
This file is generated by `grunt build`, do not edit it by hand.
20+
*/
21+
\n
2122
"""
2223
minified_comments: "/* Chosen #{version_tag()} | (c) 2011-2013 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */\n"
2324

@@ -30,6 +31,9 @@ module.exports = (grunt) ->
3031
proto:
3132
src: ["public/chosen.proto.js"]
3233
dest: "public/chosen.proto.js"
34+
css:
35+
src: ["public/chosen.css"]
36+
dest: "public/chosen.css"
3337

3438
coffee:
3539
options:
@@ -52,15 +56,13 @@ module.exports = (grunt) ->
5256
compass:
5357
chosen_css:
5458
options:
55-
banner: "<%= comments %>"
56-
sassDir: "sass"
57-
cssDir: "public"
5859
specify: ['sass/chosen.scss']
5960

6061
cssmin:
6162
minified_chosen_css:
6263
options:
6364
banner: "<%= minified_comments %>"
65+
keepSpecialComments: 0
6466
src: 'public/chosen.css'
6567
dest: 'public/chosen.min.css'
6668

0 commit comments

Comments
 (0)