mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
ESlint comma-dangle
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = function (Meta) {
|
||||
var paths = [
|
||||
baseThemePath,
|
||||
path.join(__dirname, '../../node_modules'),
|
||||
path.join(__dirname, '../../public/vendor/fontawesome/less')
|
||||
path.join(__dirname, '../../public/vendor/fontawesome/less'),
|
||||
];
|
||||
var source = '';
|
||||
|
||||
@@ -78,7 +78,7 @@ module.exports = function (Meta) {
|
||||
function (src, next) {
|
||||
source += src;
|
||||
next();
|
||||
}
|
||||
},
|
||||
], function (err) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
@@ -136,7 +136,7 @@ module.exports = function (Meta) {
|
||||
function minify(source, paths, target, callback) {
|
||||
callback = callback || function () {};
|
||||
less.render(source, {
|
||||
paths: paths
|
||||
paths: paths,
|
||||
}, function (err, lessOutput) {
|
||||
if (err) {
|
||||
winston.error('[meta/css] Could not minify LESS/CSS: ' + err.message);
|
||||
@@ -146,7 +146,7 @@ module.exports = function (Meta) {
|
||||
postcss(global.env === 'development' ? [ autoprefixer ] : [
|
||||
autoprefixer,
|
||||
clean({
|
||||
processImportFrom: ['local']
|
||||
processImportFrom: ['local'],
|
||||
}),
|
||||
]).process(lessOutput.css).then(function (result) {
|
||||
result.warnings().forEach(function (warn) {
|
||||
|
||||
Reference in New Issue
Block a user