These are chat archives for less/less.js

8th
Jul 2015
Bryce Walther
@NullEntity
Jul 08 2015 07:01
is there a nice way to get the path of a module from a less file? Currently the less files are something like @import "../node_modules/elemental/lib/Elemental.js". I'd like to be able to do something like @import getModulePath('elemental', 'lib/Elemental.js')
Bryce Walther
@NullEntity
Jul 08 2015 07:23
found the js eval stuff, but it looks like it's not given global scope :(
aka I can't access require
Denys Dovhan
@denysdovhan
Jul 08 2015 08:26
@NullEntity I have seen less-plugin that provides import from npm-modules. When I come home, I will send you, okay?
Denys Dovhan
@denysdovhan
Jul 08 2015 14:51
@NullEntity look here - less-plugin-npm-import, or here - less-plugin-glob.
I hope, I helped you.
Bryce Walther
@NullEntity
Jul 08 2015 17:22
@denysdovhan yes, you very much have. Thanks so much.
Denys Dovhan
@denysdovhan
Jul 08 2015 17:31
@NullEntity :+1:
Bryce Walther
@NullEntity
Jul 08 2015 18:56
@denysdovhan looks like the maintainer is aware of npm-import and just sucks at communicating >.>
Denys Dovhan
@denysdovhan
Jul 08 2015 20:44
@NullEntity maybe. But, it's open source, guy! There'll always be somebody who'll help you, like me))