Closed GCheung55 closed 8 years ago
@maxmx and @kane-c: any thoughts here?
This isn't like in sass where the root directory would have been added to the path. Unless I'm mistaken I think all the imports in the index.styl are relative no?
I believe that to be partially incorrect.
Assume the following example path:
somePath/mixins.styl
somePath
is included or set as a "paths" value via the JS API (https://learnboost.github.io/stylus/docs/js.html#includepath). When bootstrap-stylus
index.styl
imports mixins
, it would instead import somePath/mixins.styl
.
If somePath
directory was not included or set as a "paths" value then the mixins.styl relative to index.styl would load.
Right, makes sense.
You can submit a PR, I'll bump the major version since that kind of change would break all current usage of the library.
@maxmx I've already submitted a PR. :D https://github.com/maxmx/bootstrap-stylus/pull/106
@maxmx Anything I can do to move this along?
Done, just had to test it locally first.
Thank for the PR!
@maxmx no no, thank you!
bootstrap-stylus
has conflicting module names because they aren't underbootstrap
namespace.For example, an existing path containing a module named
variables
could already be established sobootstrap/variables
doesn't get loaded inbootstrap/index
.To prevent this kind of conflict, the modules should be a full path to the module like:
and in
bootstrap/mixins/