Git Product home page Git Product logo

Comments (7)

donaldpipowitch avatar donaldpipowitch commented on July 27, 2024

Source map support would be great. I think I wouldn't use stilr without Source maps.

from stilr.

danieljuhl avatar danieljuhl commented on July 27, 2024

PR is very welcome. We will look into this, but I can't see exactly when, so any PR could speed up the process.

from stilr.

aulizko avatar aulizko commented on July 27, 2024

PostCSS can create sourcemap.

I think this will be enough. It'll generate inline source map, which is fast and therefore completely OK for development IMO.

if (process.env !== 'production') {
  const prefixedCSS = postcss(autoprefixer())
    .process( StyleSheet.render(), { map: true} ) // <--- THIS
    .css;
  stylesheet.textContent = prefixedCSS;
}

As for production usage, you can generate separate source map, too. See the docs.

from stilr.

boyswan avatar boyswan commented on July 27, 2024

would be great to expand on classnames, only problem I have with Stilr is hash only classnames!

from stilr.

danieljuhl avatar danieljuhl commented on July 27, 2024

@boyswan sorry, but I do not understand, what you want. Can you please rephrase? You would like Stilr to not use hashes as classnames?

from stilr.

boyswan avatar boyswan commented on July 27, 2024

At the moment classnames are generated as pure hashe's i.e. 'xy132as', it would be great if we could also include the actual classname, i.e. 'button_xy132as'

from stilr.

danieljuhl avatar danieljuhl commented on July 27, 2024

Okay, so actually just a vote for the initial issue comment? PR is more than welcome.

from stilr.

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.