Giter Club home page Giter Club logo

Comments (3)

idoros avatar idoros commented on May 28, 2024

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.

ahoyahoy avatar ahoyahoy commented on May 28, 2024

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.

idoros avatar idoros commented on May 28, 2024

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)

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.