Comments (3)
stylable.transform
is probably the way to go. Unfortunately -st-*
declarations are removed in a separate optimization process that is called by the integrations. Moving this to the transform process has been on our todo list for awhile, I will make that happen this week, and the next version will remove -st-*
declarations in stylable.transform
.
If you use the transform on stylable, you will get { meta, exports }
, and you can read the final CSS from meta.targetAst.toString()
and the mapped namespaced symbols on the exports
.
The CLI internal build
function can generate .css
files with outputCSS: true
and can run ALL optimizations with optimize: true
, that includes removing the -st-*
declaration. But I'm not sure you want the dependency on the CLI for your programmatic flow.
from stylable.
yeah stylable.transform is perfect. I look forward to your next update.
A predefined object (or documentation) for properly setup memory fs would also be useful.
requireModule and resolveNamespace
Thanks for your work btw! This is the best css tool ever :)
I immediately adopted it for all react projects and now I'm trying to impletent it in our low-code platform.
from stylable.
so new version 5.6.0 is out and should remove stylable build declarations by default for production mode.
Documentation should be updated soon
from stylable.
Related Issues (20)
- proposal: Type only class definition
- proposal: State declarations HOT 1
- @stylable/jest has no peer dependencies and is broken with jest 28
- proposal: explicit custom-pseudo-element definition HOT 4
- `st-global` utility is not removed from valid @property definitions during transformation
- Imports with side effect HOT 1
- Add runtime validation to the options of our integrations HOT 2
- next.js with disabled JS not working HOT 3
- Unify analyze and transform hooks flow
- Stylesheet does not get applied when using Next.js 13 HOT 1
- Imported custom property false positive analysis
- CSS LSP emits false diagnostics for custom property global syntax
- build stylable without filesystem HOT 4
- Cyclic error combines mixin path and var paths
- -st-* declarations on imported class
- proposal: unify selector definition API HOT 1
- stylable build error with storybook 7 HOT 4
- Build errors when running create-stylable-app HOT 1
- Improve runtime injectCSS
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 stylable.