Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurin Quast committed May 25, 2017
1 parent 9ed895f commit a5aaf72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createWebpackLessPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function createWebpackLessPlugin(loaderContext) {

loadFile(filename, currentDirectory /* , options, environment */) { // eslint-disable-line class-methods-use-this
const url = filename.replace(matchMalformedModuleFilename, '$1');
const moduleRequest = loaderUtils.urlToRequest(url);
const moduleRequest = url.charAt(0) === '/' ? url : loaderUtils.urlToRequest(url);
// Less is giving us trailing slashes, but the context should have no trailing slash
const context = currentDirectory.replace(trailingSlash, '');
let resolvedFilename;
Expand Down

0 comments on commit a5aaf72

Please sign in to comment.