Skip to content

Loader does not accept my paths #81

Description

@wspringer

If I'm setting the paths option to add another load path for my less files, then webpack fails with an error:

ERROR in ./index.less
Module build failed: Cannot resolve 'file' or 'directory' ./font-awesome/less/font-awesome.less in /Users/wilfred/workspace/lesstest
 @ /Users/wilfred/workspace/lesstest/index.less (line 1, column 0)
 near lines:

   @import "font-awesome/less/font-awesome.less";

It appears the paths variable is completely disregarded, and the WebpackFileManager used internally is unable to resolve the file. Since I'm still pretty new to Webpack, I'm not sure if it violates a design principle, for all practical purposes, it would be great if the loader would support the paths property. If it does violate a design principle, then it would be really convenient if the less-loader would inform anyone attempting to use the paths property that it is not supported.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions