-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[docs] Fix Pigment CSS migration content #43217
Conversation
siriwatknp
commented
Aug 7, 2024
- I have followed (at least) the PR section of the contributing guide.
Netlify deploy previewBundle size report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of small comments.
docs/data/material/migration/migrating-to-v6/migrating-to-pigment-css.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, Vite should have vite.config.ts
too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out either vite.config.mjs
or vite.config.js
, the content will be the same. I updated to mention the file pattern instead:
- Next, open vite config file, usually named `vite.config.js`, and add the plugin:
+ Next, open vite config file, usually named `vite.config.mjs` or `vite.config.js`, and add the plugin:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So next.config.js uses require
but vite.config.js uses import
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, vite.config.js
supports ESM but next.config.js
requires commonjs.
docs/data/material/migration/migrating-to-v6/migrating-to-pigment-css.md
Show resolved
Hide resolved
docs/data/material/migration/migrating-to-v6/migrating-to-pigment-css.md
Outdated
Show resolved
Hide resolved
docs/data/material/migration/migrating-to-v6/migrating-to-pigment-css.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. There's an open question in 4086c20#r1706823545 but I think we can move forward.
docs/data/material/migration/migrating-to-v6/migrating-to-pigment-css.md
Outdated
Show resolved
Hide resolved
…ent-css.md Co-authored-by: Sycamore <71297412+samuelsycamore@users.noreply.github.com> Signed-off-by: Siriwat K <siriwatkunaporn@gmail.com>