Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change context by using paths array #75

Closed

Commits on Jan 29, 2016

  1. change context by using paths array

    Less supports to additional contexts by using a paths array as an option (see http://lesscss.org/usage/#command-line-usage-options). This is only done, if the default context can't be resolved.
    
    > If the file in an @import rule does not exist at that exact location, less will look for it at the location(s) passed to this option. You might use this for instance to specify a path to a library which you want to be referenced simply and relatively in the less files.
    
    It can be used like this:
    
    ```
    {
      test: /\.less$/,
      loader: `less?sourceMap&paths[]=${additionalDirectoryPath}`
    }
    ```
    
    This is a crucial feature to easily integrate webpack into existing projects.
    donaldpipowitch committed Jan 29, 2016
    Configuration menu
    Copy the full SHA
    06206fd View commit details
    Browse the repository at this point in the history