emilgoldsmith / stylelint-custom-processor-loader

A Webpack loader for stylelint used with custom processors
MIT License
24 stars 3 forks source link

Incorrect configPath resolution #64

Closed harrysolovay closed 5 years ago

harrysolovay commented 5 years ago

I'm adding the stylelint-custom-processor-loader to my webpack configuration via a function that takes in the configPath. When I log out the value being passed in, it properly displays the following:

/Users/harrysolovay/Desktop/rescripts/packages/examples/basic/.stylelintrc

Still, I'm get the following compilation error:

Error: ENOENT: no such file or directory, open '/Users/harrysolovay/Desktop/rescripts/packages/examples/.stylelintrc'

It's deleting basic/ from the path. What's goin' on with the configPath's resolution?

Thanks!

emilgoldsmith commented 5 years ago

Fixed in #65