Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Oct 23, 2016
1 parent b24f185 commit 1975e7c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ class LESSCompiler {
delete this.config.cssModules;
}

getDependencies(sourceContents, file, callback) {
progeny({rootPath: this.rootPath})(file, sourceContents, (err, deps) => {
getDependencies(file) {
progeny({rootPath: this.rootPath})(file.path, file.data, (err, deps) => {
if (!err) {
const re = /data-uri\s*\(\s*("|'|)([^)]*)\1\s*\)/g;
let match;
while (match = re.exec(sourceContents)) {
deps.push(sysPath.join(sysPath.dirname(file), match[2]));
while (match = re.exec(file.data)) {
deps.push(sysPath.join(sysPath.dirname(file.path), match[2]));
}
}
callback(err, deps);
});
}

compile(params) {
const data = params.data;
const path = params.path;
compile(file) {
const data = file.data;
const path = file.path;
const config = Object.assign({}, this.config, {
paths: [this.rootPath, sysPath.dirname(path)],
filename: path,
Expand Down

0 comments on commit 1975e7c

Please sign in to comment.