Comments (4)
It should produce an equivalent color that's also smaller. What problem is this causing for you?
from lightningcss.
It should produce an equivalent color that's also smaller. What problem is this causing for you?
But I cannot directly search for the color values displayed by the page checker in the code,
If I can configure the original format output, then I can easily search for the corresponding style in the code for easy modification
from lightningcss.
Lightning CSS output is not meant for human readability. It is meant to produce the smallest and most compatible output for browsers to consume. If you're looking for a formatter or something like that I'd suggest using a different tool.
from lightningcss.
@CWH0908 you might like https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-minify#readme
It minifies your CSS without actually changing it ;)
from lightningcss.
Related Issues (20)
- Minifier Breaks Black Translucent Colors HOT 2
- Using Lightning as a code generator HOT 2
- Moving back to upstream `selectors`? HOT 2
- transcribes OKLCH poorly HOT 1
- Sourcemap @include paths not updated HOT 2
- Allow use of "resolver" when using through vite HOT 1
- Minification strips required whitespace between consecutive `var(...)` calls HOT 3
- Lightningcss randomly drops a selector, breaking styling
- cli: mis-match between --version and npm package version HOT 1
- [Feature Request]: Support `generate(ast)` API like `csstree`
- Support `overlay` property
- Position of `all` property is not maintained HOT 3
- Add support for custom import resolvers in synchronous bundle API
- Use browserslist entry in package.json (vite)
- lots of :lang() in output HOT 3
- Lightning with Astro: Can't resolve background-image path HOT 1
- Unexpected Token Error with "all" property
- Alias another CSS module file to avoid repeating (long) filepaths
- CLI error `This: command not found`
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 lightningcss.