Skip to content

Commit

Permalink
Merge 621114e into 57452fd
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Feb 17, 2017
2 parents 57452fd + 621114e commit 0e6e813
Show file tree
Hide file tree
Showing 23 changed files with 792 additions and 697 deletions.
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
root = true

[*]
indent_style = tab
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 233

[*.json]
indent_style = space
indent_size = 2

[*.yml]
indent_style = space
indent_size = 2

[test/cases/parsing/bom/bomfile.{css,js}]
charset = utf-8-bom

[*.md]
trim_trailing_whitespace = false
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"valid-jsdoc": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-arrow-callback": "error"
"prefer-arrow-callback": "error",
"object-shorthand": "error"
}
}
}
347 changes: 0 additions & 347 deletions index.js

This file was deleted.

13 changes: 13 additions & 0 deletions lib/getCurrentRequest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"use strict";

function getCurrentRequest(loaderContext) {
if(loaderContext.currentRequest)
return loaderContext.currentRequest;
const request = loaderContext.loaders
.slice(loaderContext.loaderIndex)
.map(obj => obj.request)
.concat([loaderContext.resource]);
return request.join("!");
}

module.exports = getCurrentRequest;
Loading

0 comments on commit 0e6e813

Please sign in to comment.