Permalink
Browse files

Fix #666 : Make core (dist/csslint.js) compatible with CodeMirror in …

…browser,

- in general, any environment that supports CommonJS module,
  and expect proper module, exports global
  • Loading branch information...
1 parent 78d218d commit 4764627d0283bc98725ea4a0e8b7a9137bdf9c8b @orionlee orionlee committed Aug 25, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 Gruntfile.js
View
@@ -65,10 +65,10 @@ module.exports = function(grunt) {
core: {
options: {
banner: "<%= banner %>\n" +
+ "var CSSLint = (function(){\n" +
// Hack for using the node version of parserlib and clone
- "var module = module || {},\n" +
- " exports = exports || {};\n\n" +
- "var CSSLint = (function(){\n",
+ " var module = module || {},\n" +
+ " exports = exports || {};\n\n",
footer: "\nreturn CSSLint;\n})();"
},
src: [

0 comments on commit 4764627

Please sign in to comment.