-
Notifications
You must be signed in to change notification settings - Fork 2.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
Fixed Dashboard v0.0.1 w/ Polymer3 + Webpack #2576
Changes from 4 commits
3d2681b
a3de480
738de03
02fe066
9e2b6a0
78ce358
34c9974
07eecd2
5aec33c
482e90c
b47b3a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"version": "0.0.1", | ||
"description": "Kubeflow Central Dashboard", | ||
"scripts": { | ||
"build": "NODE_ENV=production npx webpack && npm run tslint && npm run build-ts", | ||
"build": "cross-env NODE_ENV=production npx webpack && npm run tslint && npm run build-ts", | ||
"build-ts": "tsc", | ||
"build-webpack": "npx webpack", | ||
"debug": "npm run build && npm run watch-debug", | ||
|
@@ -28,6 +28,7 @@ | |
}, | ||
"homepage": "https://github.com/kubeflow/kubeflow#readme", | ||
"dependencies": { | ||
"@babel/polyfill": "^7.2.5", | ||
"@polymer/app-layout": "^3.0.0", | ||
"@polymer/app-route": "^3.0.0", | ||
"@polymer/iron-collapse": "^3.0.1", | ||
|
@@ -59,6 +60,7 @@ | |
"clean-webpack-plugin": "^1.0.1", | ||
"concurrently": "^4.1.0", | ||
"copy-webpack-plugin": "^5.0.0", | ||
"cross-env": "^5.2.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also noticed that the terser-webpack-plugin got added to deps instead of devDeps. Can you move that in this commit? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure |
||
"css-loader": "^2.1.0", | ||
"exports-loader": "^0.7.0", | ||
"file-loader": "^3.0.1", | ||
|
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.
I'm not sure if this is needed. I know there is the warning in the webpack build process but I think the fact that we are providing the dependencies through the webcomponents-loader.js makes it a moot point. At best I think it would be a devDependency though and not in our primary deps.
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.
Nevermind. I think I overestimated the scope of the webcomponents polyfills as also including standard polyfills for ES6. I do think we still need to import
@babel/polyfill
in our entry point.I've added that to my PR #2579. Feel free to merge the applicable changes from that into this change, or if you want to approve, we can merge that into master first and then your change will only be to fix the Windows specific stuff.
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.
Yeah, let's merge yours, since it addresses a bug, and then this can be a feature merge.