lit-css icon indicating copy to clipboard operation
lit-css copied to clipboard

any support for Parcel ? S ample package.json configuration would be appreciated

Open mediabuff opened this issue 1 year ago • 4 comments

mediabuff avatar May 08 '23 14:05 mediabuff

No plans but I can review a pr

bennypowers avatar May 08 '23 15:05 bennypowers

I don't think I am very savy in this area to implement an addon. That's the reason I came to lit-css :-)

mediabuff avatar May 08 '23 23:05 mediabuff

Seems to be not a complex endeavour. I a novice in this area. That's why i ran away from webpack to parcel. But kind of stuck now - no lit css plugins !

https://parceljs.org/plugin-system/authoring-plugins/

Another example: https://github.com/Anteris-Dev/parcel-transformer-lit-css/blob/master/src/LitCssTransformer.ts

mediabuff avatar May 09 '23 00:05 mediabuff

don't sell yourself short! the functions to transform the input files are all in the @pwrs/lit-css package - see one of the implementations like rollup-plugin-lit-css for an example. You can start by copying rollup-plugin-lit-css, and renaming that dir and everything inside to match, then do the same in the test dir. Update the test files and plugin file to use the parcel api, then run the tests to see what broke

bennypowers avatar May 09 '23 08:05 bennypowers