Giter Site home page Giter Site logo

Comments (4)

khanguy00 avatar khanguy00 commented on June 19, 2024 1

Fair point. Then I just keep the copied one. Thanks anyway.

from postcss-modules-values-replace.

princed avatar princed commented on June 19, 2024

Hi Kha! What are actually trying to do? 😄

from postcss-modules-values-replace.

khanguy00 avatar khanguy00 commented on June 19, 2024

Well, you may know that in my project (and you still remember what is that project, right?), we have a stylelint plugin to block people from using some CSS properties and transform properties. To do that, I have to parse the CSS in a specific way, which then along with #33 will boost the processing speed further. Which mean that I should reuse the regexes.

Currently, I just copy them into my internal plugin, but I wonder if you could expose those regexes from your plugin?

from postcss-modules-values-replace.

princed avatar princed commented on June 19, 2024

Oh I see. To be honest I'm not sure if exposing such implementation details is a good idea as I wouldn't like to provide any compatibility guarantees for them. Also I should say I copied most of them myself from https://github.com/css-modules/postcss-modules-values/blob/master/src/index.js#L5-L7

To sum up I think it'd be better to copy them over just as you did already. If it helps in any way, this plugin also provides a list of extracted values via postcss messages — https://github.com/princed/postcss-modules-values-replace#extracting-values-for-programmatic-use.

from postcss-modules-values-replace.

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.