Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🟧 svelte-package + postcss to preprocess package for production βˆ• npm publishing ? #565

Open
oneezy opened this issue Dec 16, 2022 · 0 comments

Comments

@oneezy
Copy link

oneezy commented Dec 16, 2022

I have a svelte lib setup and am using svelte-package + tailwindcss + postcss to create a component package lib folder for publishing to npm.

when i run pnpm package the package folder is automatically created with the contents:

  package/
  β”œβ”€β”€ components/
  β”‚   β”œβ”€β”€ Button.svelte
  β”‚   └── Button.svelte.d.ts
- β”œβ”€β”€ styles.postcss
  β”œβ”€β”€ index.js
  β”œβ”€β”€ index.d.ts
  └── package.json

But that styles.postcss isn't processed or minified for production and I'm really not sure what best option is.

What are my options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant