webpack-contrib / stylus-loader

:art: A stylus loader for webpack.
MIT License
498 stars 99 forks source link

Shouldn’t the type hints for `stylusOptions.include` and `stylusOptions.import` be changed to `string[]`? #420

Closed zavierkolten closed 3 months ago

zavierkolten commented 3 months ago

Documentation Is:

Please Explain in Detail...

stylusOptions.include and stylusOptions.import seems like it should be an array, but the documentation states that it should be a string.

image

When I pass in a string, its behavior doesn’t seem to be as expected.

webpack config:

image

stylus loader breakpoint:

image

Your Proposal for Changes

Change these two types to string[].

alexander-akait commented 3 months ago

PR welcome

zavierkolten commented 3 months ago

@alexander-akait PTAL