the proof of concept about the new plugins API#56
the proof of concept about the new plugins API#56mightyaleksey wants to merge 11 commits intocss-modules:masterfrom mightyaleksey:proof-of-concept
Conversation
extractor.js
Outdated
There was a problem hiding this comment.
I'd like to move that file to the public module
|
Hey @sullenor I like the direction you've taken here. What other things do you think need to be done before this is ready? Anything I can help with? |
|
Hey @joshwnj I think I'll make another pr to the loader-core on the weekend and we can try to adopt gulp plugin to the new version. I want to try another pattern and I hope it will be slightly better. I also tried that version on a real project and unfortunately failed :( I had small issue with postcss-url, but I haven't figured it out what was the problem. I was short on time, so I moved to webpack :) Thanks |
Hi, I made a small demo of usage of the new plugins API which I want to make public. The current implementation for the css-modulesify isn't production ready but it's a working demo to show that is possible :)
Still it requires param validation and I'm not sure about
generateShortNameandgenerateLongName.Currently if you provide the custom
generateScopedNamefunction for the scope plugin - you'll get absolute paths to the source files instead of relatives (it's a feature! :)), but it results in the long generic classnames names if you use predefined functionsgenerateShortNameandgenerateLongName.So, to make it work, I think those functions should build relative paths manually or as alternative way it is possible to use webpack patterns.