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

build(@vtmn/svelte): inject CSS to dist folder by switching to PostCSS #1214

Merged
merged 5 commits into from
Aug 22, 2022

Conversation

Tlahey
Copy link
Contributor

@Tlahey Tlahey commented Jul 26, 2022

Change the rollup configuration.
Switch to postcss to insert the @imported css into the dist folder.

This enhancement doesn't required anymore the @vtmn/css-* as dependencies.

In the dist output with this changes :

image

  • Add rollup-plugin-terser in order to minify the bundle
  • Move rollup-plugin-css-only to rollup-plugin-postcss

@Tlahey Tlahey added enhancement 🚀 New feature or request Svelte 🟠 Related to Svelte components library v0 ⛳️ labels Jul 26, 2022
@Tlahey Tlahey force-pushed the import-css-dist branch from 877e801 to 35efc70 Compare July 26, 2022 09:35
@Tlahey Tlahey marked this pull request as draft July 26, 2022 12:37
@Tlahey Tlahey force-pushed the import-css-dist branch 2 times, most recently from 824cc3e to 1e100c2 Compare July 26, 2022 16:11
@lauthieb lauthieb force-pushed the main branch 2 times, most recently from b2ba18f to 1605e93 Compare July 26, 2022 20:41
@lauthieb lauthieb changed the title build(@vtmn/svelte): switch to postcss build(@vtmn/svelte): switch to PostCSS Jul 26, 2022
@lauthieb lauthieb changed the title build(@vtmn/svelte): switch to PostCSS build(@vtmn/svelte): inject CSS to dist folder by switching to PostCSS Jul 26, 2022
@Tlahey
Copy link
Contributor Author

Tlahey commented Jul 27, 2022

@Tlahey Tlahey force-pushed the import-css-dist branch 3 times, most recently from 286b1db to bdb3f46 Compare July 29, 2022 07:26
@Tlahey Tlahey marked this pull request as ready for review August 17, 2022 08:30
@Tlahey Tlahey requested a review from AxelPeter August 17, 2022 08:39
AxelPeter
AxelPeter previously approved these changes Aug 17, 2022
@Tlahey Tlahey added the Publish canary 🐥 Publish a canary version of the current PR label Aug 17, 2022
@Tlahey Tlahey removed the Publish canary 🐥 Publish a canary version of the current PR label Aug 17, 2022
@Tlahey Tlahey added the Publish canary 🐥 Publish a canary version of the current PR label Aug 17, 2022
@Tlahey Tlahey added Publish canary 🐥 Publish a canary version of the current PR and removed Publish canary 🐥 Publish a canary version of the current PR labels Aug 17, 2022
@github-actions
Copy link

🐥 Canary published successfully !

@Tlahey Tlahey added Publish canary 🐥 Publish a canary version of the current PR and removed Publish canary 🐥 Publish a canary version of the current PR labels Aug 17, 2022
@Tlahey Tlahey added the Publish canary 🐥 Publish a canary version of the current PR label Aug 17, 2022
@github-actions github-actions bot removed the Publish canary 🐥 Publish a canary version of the current PR label Aug 17, 2022
@Tlahey
Copy link
Contributor Author

Tlahey commented Aug 19, 2022

@lauthieb it's ok for us, we can push it :)

@lauthieb
Copy link
Member

Thanks a lot @Tlahey & @AxelPeter for this great work!

@lauthieb lauthieb merged commit b13efae into main Aug 22, 2022
@lauthieb lauthieb deleted the import-css-dist branch August 22, 2022 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🚀 New feature or request Svelte 🟠 Related to Svelte components library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants