Coder Social home page Coder Social logo

CRA example request about stylex HOT 7 CLOSED

adamward459 avatar adamward459 commented on August 11, 2024
CRA example request

from stylex.

Comments (7)

adamward459 avatar adamward459 commented on August 11, 2024

Screen Shot 2021-02-15 at 23 27 09

from stylex.

adamward459 avatar adamward459 commented on August 11, 2024

I figured a way. We have to use craco js to extend cra default config and in craco.config.js

module.exports = {
  babel: {
    plugins: [
      [
        '@ladifire-opensource/babel-plugin-transform-stylex',
        {
          inject: true, // will inject compiled css to stylesheet in head
        },
      ],
    ],
  },
};

from stylex.

ladifire avatar ladifire commented on August 11, 2024

@phamthanhtrungg
Thanks, can you make a pull request for changing document in README.md?

from stylex.

adamward459 avatar adamward459 commented on August 11, 2024

@ladifire checkout my pr #16

from stylex.

ladifire avatar ladifire commented on August 11, 2024

@phamthanhtrungg please consider to add create-react-app example. It's should be placed in: packages/stylex-create-react-app-examples

from stylex.

adamward459 avatar adamward459 commented on August 11, 2024

I will make a pr tomorrow

from stylex.

adamward459 avatar adamward459 commented on August 11, 2024

@ladifire checkout my #17

from stylex.

Related Issues (11)

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.