mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-04 06:40:44 +01:00
fixing less imports on windows
This commit is contained in:
@@ -343,12 +343,12 @@ var fs = require('fs'),
|
||||
|
||||
// Add the imports for each LESS file
|
||||
for(x=0,numLESS=plugins.lessFiles.length;x<numLESS;x++) {
|
||||
source += '\n@import "./' + plugins.lessFiles[x] + '";';
|
||||
source += '\n@import ".' + path.sep + plugins.lessFiles[x] + '";';
|
||||
}
|
||||
|
||||
// ... and for each CSS file
|
||||
for(x=0,numCSS=plugins.cssFiles.length;x<numCSS;x++) {
|
||||
source += '\n@import (inline) "./' + plugins.cssFiles[x] + '";';
|
||||
source += '\n@import (inline) ".' + path.sep + plugins.cssFiles[x] + '";';
|
||||
}
|
||||
|
||||
var parser = new (less.Parser)({
|
||||
|
||||
Reference in New Issue
Block a user