Skip to content

Commit 78f4bbf

Browse files
fix static failure
1 parent cd0bd9d commit 78f4bbf

File tree

1 file changed

+42
-41
lines changed

1 file changed

+42
-41
lines changed

dev/tools/grunt/configs/less.js

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,49 @@
33
* See COPYING.txt for license details.
44
*/
55

6-
'use strict';
7-
8-
var combo = require('./combo'),
9-
themes = require('../tools/files-router').get('themes'),
10-
_ = require('underscore'),
11-
themeOptions = {},
12-
lessOptions = {
13-
options: {
14-
sourceMap: true,
15-
strictImports: false,
16-
sourceMapRootpath: '/',
17-
sourceMapBasepath: function () {
18-
this.sourceMapURL = this.sourceMapFilename.substr(this.sourceMapFilename.lastIndexOf('/') + 1);
19-
return 'pub/';
6+
(function () {
7+
"use strict";
8+
var combo = require('./combo'),
9+
themes = require('../tools/files-router').get('themes'),
10+
_ = require('underscore'),
11+
themeOptions = {},
12+
lessOptions = {
13+
options: {
14+
sourceMap: true,
15+
strictImports: false,
16+
sourceMapRootpath: '/',
17+
sourceMapBasepath: function () {
18+
this.sourceMapURL = this.sourceMapFilename.substr(this.sourceMapFilename.lastIndexOf('/') + 1);
19+
return 'pub/';
20+
},
21+
dumpLineNumbers: false, // use 'comments' instead false to output line comments for source
22+
ieCompat: false
2023
},
21-
dumpLineNumbers: false, // use 'comments' instead false to output line comments for source
22-
ieCompat: false
23-
},
24-
setup: {
25-
files: {
26-
'<%= path.css.setup %>/setup.css': '<%= path.less.setup %>/_setup.less'
27-
}
28-
},
29-
updater: {
30-
files: {
31-
'<%= path.css.updater %>/updater.css': '<%= path.less.setup %>/_setup.less'
32-
}
33-
},
34-
documentation: {
35-
files: {
36-
'<%= path.doc %>/docs.css': '<%= path.doc %>/source/docs.less'
24+
setup: {
25+
files: {
26+
'<%= path.css.setup %>/setup.css': '<%= path.less.setup %>/_setup.less'
27+
}
28+
},
29+
updater: {
30+
files: {
31+
'<%= path.css.updater %>/updater.css': '<%= path.less.setup %>/_setup.less'
32+
}
33+
},
34+
documentation: {
35+
files: {
36+
'<%= path.doc %>/docs.css': '<%= path.doc %>/source/docs.less'
37+
}
3738
}
38-
}
39-
};
39+
};
4040

41-
_.each(themes, function (theme, name) {
42-
themeOptions[name] = {
43-
files: combo.lessFiles(name)
44-
};
45-
});
41+
_.each(themes, function (theme, name) {
42+
themeOptions[name] = {
43+
files: combo.lessFiles(name)
44+
};
45+
});
4646

47-
/**
48-
* Compiles Less to CSS and generates necessary files if requested.
49-
*/
50-
module.exports = _.extend(themeOptions, lessOptions);
47+
/**
48+
* Compiles Less to CSS and generates necessary files if requested.
49+
*/
50+
module.exports = _.extend(themeOptions, lessOptions);
51+
})();

0 commit comments

Comments
 (0)