Coder Social home page Coder Social logo

Comments (4)

pawelblaszczyk5 avatar pawelblaszczyk5 commented on May 17, 2024

Thanks a lot for this!

from panda.

matthew-ia avatar matthew-ia commented on May 17, 2024

EDIT: I didn't look through the PR well enough; setting eject: true in my config was what I was missing. I found that the solution is to set eject: true in config, then run npx panda codegen --clean.


I am able to remove default tokens by not including extends, but I am still getting default patterns, conditions, and utilities with empty objects in the config. Is this expected?

E.g., if I have the config:

export default defineConfig({
  // ...
  theme: {},
  patterns: {},
  conditions: {},
})

Then run: npx panda codegen --clean

I still get output for all patterns, etc.:

Screenshot 2023-09-03 at 17 35 24@2x

from panda.

anubra266 avatar anubra266 commented on May 17, 2024

@matthew-ia There's no issue with eject. The issue here is that the clean flag isn't removing the patterns that were generated before.
Please open a different issue for this.

from panda.

matthew-ia avatar matthew-ia commented on May 17, 2024

@anubra266 thanks for the help, but it was just user error on my part. I didn't use eject at first, thinking just not using extends and using empty objects would do the trick as this issue originally mentioned.

Using eject and using --clean are indeed working as expected!

from panda.

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.