Closed jonathanglasmeyer closed 8 years ago
Awesome. :)
I published the new version: 4.0.0. Check it out.
Small example:
const hook = require('css-modules-require-hook');
const lessParser = require('postcss-less').parse;
hook({
extensions: '.less',
processorOpts: {parser: lessParser},
});
I'd like to use https://github.com/gilt/postcss-less to handle less/css-modules files. This works when I modify the line 93 in
lib/index.js
as follows:It'd be nice to be able to hook into this options object from the public css-modules-require-hook API. What do you think?