Coder Social home page Coder Social logo

Comments (5)

argyleink avatar argyleink commented on June 11, 2024

hmmm, the files and json provided aren't inserted into a stylesheet unless found used. there's 0 logic for "just putting props into a stylesheet", it's all on a use by use basis. Maybe there's an accidental import of colors somewhere? are you able to create an astro minimal build on stackblitz that shows the issue? I can start debugging it if you have can 🙂

thanks for the report! lets get to the bottom of it

from postcss-jit-props.

PapiPeppers avatar PapiPeppers commented on June 11, 2024

https://stackblitz.com/~/github.com/PapiPeppers/demo-postcssJitProps-issue

lmk if this doesn't work. Not a big issue here, just something I noticed and figured I'd throw out. Thanks for your help!

from postcss-jit-props.

argyleink avatar argyleink commented on June 11, 2024

thanks for this!

if you move the color.css file out of the src directory, it doesnt make it to the end build.
my guess, one of the plugins has a wildcard to bundle styles and is pulling it in. not sure which plugin, but i believe i was able to shift the blame from jit-props (which did appear to only add the used colors) to astro/vite/plugin (somethin in bein greedy).

from postcss-jit-props.

PapiPeppers avatar PapiPeppers commented on June 11, 2024

Ok had a feeling that could be it. Should have tested it out myself but thanks for your help!

from postcss-jit-props.

PapiPeppers avatar PapiPeppers commented on June 11, 2024

Seems like this is no longer an issue. Deployed a dev branch to vercel and the full file is no longer included in the build, the plugin works as expected.

from postcss-jit-props.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.