Comments (5)
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.
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.
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.
Ok had a feeling that could be it. Should have tested it out myself but thanks for your help!
from postcss-jit-props.
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)
- Props discovered, that contain adaptive props, dont have their dark values resolved HOT 5
- Need a syntax (like `-@`) so jit-props can inject light/dark adaptive props
- html inline style attributes corrupted HOT 4
- Using with lit and astro HOT 5
- Optimization
- Feature request: Support file-globbing HOT 1
- Bug: Nested properties are purged if the first prop is not defined HOT 1
- Bug: "does not pass the 'from' option to 'postcss.parse'" HOT 4
- Modifying props during development doesn't update page HOT 3
- Allow passing a file to the plugin, as the destination for injected props HOT 1
- Watch provided `files` for changes HOT 1
- Adaptive keyframes not working HOT 1
- Error when using Astro HOT 2
- Changelog file seems unused
- What is the license of this package?
- Compatibility issues with Astro HOT 2
- Breaks when the source file only contains @at rules. HOT 1
- Should work with a client side switch HOT 3
- Breaks local fonts folder being visible in the browser Sources folder tree HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postcss-jit-props.