BlessCSS / bless

CSS Post-Processor
blesscss.com
MIT License
282 stars 60 forks source link

expose public JS API?! #70

Closed tunnckoCore closed 8 years ago

tunnckoCore commented 8 years ago

with just chunk and chunkFile ? :D

aabenoja commented 8 years ago

What is it exactly you are asking for? chunk and chunkfile are both being exported.

tunnckoCore commented 8 years ago

chunk and chunkfile are both being exported.

Nope. It's exported Parser thing. In which have .parse() method with looks like .chunk() (and maybe it is) but it is async (with callback), so it is not "pure`.chunk() method in src. Also, there we dont have .chunkFile

AaronAsAChimp commented 8 years ago

The methods chunk and chunkFile are from the 4.0 alpha. Doing an npm install bless will give you the stable version (3.0.3) that uses parse. Can you verify the version you've installed by running npm list?

aabenoja commented 8 years ago

@AaronAsAChimp is correct. You're certainly on the older v3 api (if not older). If you want access to v4.0.0-alpha.0 you would need to install it explicitly with npm install bless@4.0.0-alpha.0.

tunnckoCore commented 8 years ago

Oh yea, didn't notice the versions, i'll try.

mtscout6 commented 8 years ago

@tunnckoCore If you don't mind my asking are you building out a plugin for another build tool?

tunnckoCore commented 8 years ago

Yea. Im part of the @jstransformers organization. 120+ transformers. https://github.com/jstransformers/jstransformer-bless

Thanks! That works.