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

Migrate Simple example To Vite Instead Of Webpack For Faster Development #5857

Merged
merged 15 commits into from
Feb 16, 2021

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Feb 4, 2021

Speeds up development dramatically. However, this won't work until we release the next version of Fakerest using modern bundlers (PR incoming)

examples/simple/index.html Outdated Show resolved Hide resolved
examples/simple/index.html Outdated Show resolved Hide resolved
examples/simple/package.json Outdated Show resolved Hide resolved
examples/simple/package.json Show resolved Hide resolved
@fzaninotto
Copy link
Member

Needs rebase

</head>
<body>
<div id="root"></div>
<script>window.global = window</script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this for webpack?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed for one of our dependency, can't remember which one though. Not related to webpack

<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the old values didn't provide any value AFAIK. Besides, minimum-scale can be an accessibility issue for browsers that still respect them (those I use don't actually)

@fzaninotto fzaninotto merged commit 22f88dd into next Feb 16, 2021
@fzaninotto fzaninotto deleted the simple-example-vite branch February 16, 2021 10:37
@fzaninotto fzaninotto changed the title Simple example vite Migrate Simple example To Vite Instead Of Webpack For Faster Development Feb 16, 2021
@fzaninotto fzaninotto added this to the 3.13 milestone Feb 19, 2021
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

Successfully merging this pull request may close these issues.

2 participants