wilson428 / node-lessify

LESS precompiler plugin for Browserify v2
MIT License
24 stars 13 forks source link

Patch 1 #25

Closed lordvlad closed 7 years ago

lordvlad commented 8 years ago

don't override paths but extend them. this allows you to use a configuration like this

"browserify": {
  "transform": [
    [
      "babelify"
    ],
    [
      "node-lessify",
      {
        "compileOptions": {
          "paths": "node_modules"
        }
      }
    ]
  ]
}

and in your code simply refer to module names like this

@import 'bootstrap/less/variables.less'
DXCanas commented 7 years ago

Closing, included in #26