Skip to content

Commit 4764627

Browse files
committed
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
1 parent 78d218d commit 4764627

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Gruntfile.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ module.exports = function(grunt) {
6565
core: {
6666
options: {
6767
banner: "<%= banner %>\n" +
68+
"var CSSLint = (function(){\n" +
6869
// Hack for using the node version of parserlib and clone
69-
"var module = module || {},\n" +
70-
" exports = exports || {};\n\n" +
71-
"var CSSLint = (function(){\n",
70+
" var module = module || {},\n" +
71+
" exports = exports || {};\n\n",
7272
footer: "\nreturn CSSLint;\n})();"
7373
},
7474
src: [

0 commit comments

Comments
 (0)