-
Notifications
You must be signed in to change notification settings - Fork 89
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
Upgrade to webpack 4 #68
Conversation
package.json
Outdated
"start": "webpack-dev-server --mode development --hot --inline --progress --open --color", | ||
"build": "webpack --mode production --progress", | ||
"clean": "rm -rf build", | ||
"postbuild": "cp -rn public/* build", |
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.
Why do we need a build folder and don't build directly into the public folder?
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.
Ahh, I see. Maybe better name it deploy
.
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.
/dist: "distribution", the compiled code/library
I think dist
is like more standard.
public/index.html
Outdated
@@ -3,10 +3,7 @@ | |||
<head> | |||
<meta charset="utf-8"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |||
<meta name="theme-color" content="#325"> | |||
|
|||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> |
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.
No more favicon?
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.
Actually, html-webpack-plugin
was loading it from public
but now I think it's better to add the favicon in index.html itself. Adding it back.
|
The build works for me. Why do you say it doesn't work in production? |
|
In Vega-Lite, we use |
I have bundled everything in |
I think we want a few chunks so that downloads can run in parallel but not 47. What's the difference between cp and rsync? |
There is not much difference between
|
I have limited the maximum number of chunks to 5 (I also tried with 10 but it was creating small chunks thereafter, not much helpful). Try it if it works. |
Currently, not correctly working for production. (Work in Progress)
Fixes #53, #61.