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

Update webpack & co. #155

Merged
merged 3 commits into from
May 31, 2023
Merged

Update webpack & co. #155

merged 3 commits into from
May 31, 2023

Conversation

T4rk1n
Copy link
Contributor

@T4rk1n T4rk1n commented May 29, 2023

No description provided.

@T4rk1n T4rk1n requested a review from alexcjohnson May 29, 2023 14:22
@@ -14,7 +14,7 @@
{%- endif %}
"main": "build/index.js",
"scripts": {
"start": "webpack-serve --config ./webpack.serve.config.js --open",
"start": "webpack serve --config ./webpack.serve.config.js --open",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do people still use the demo? I wonder if we'd be better off removing it, so we only explicitly support testing components inside a Dash app.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think the demo is really useful, but I heard people use it to quickly test props and the lib may be used as raw react component also ?
For an exclusively dash component its probably better to test with usage.py as we got custom support for components props should make sure they actually work with the actual renderer.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, we can leave it. Most of our own components the demo is either nonfunctional or has been deleted entirely, but if others use it we can leave it there.

"react-dom": "^16.8.6",
"styled-jsx": "^3.2.1",
"style-loader": "^0.23.1",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"style-loader": "^0.23.1",
"style-loader": "^3.3.3",

What's the pattern for which packages you updated and which you didn't? Let's try and get a few more of these updated while we're at it. I think if we use the latest style-loader and css-loader we just need to change the webpack config for css to:

use: ['style-loader', 'css-loader']

T4rk1n and others added 2 commits May 30, 2023 15:01
Co-authored-by: Alex Johnson <johnson.alex.c@gmail.com>
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃

@alexcjohnson
Copy link
Collaborator

Hmm need to re-enable circleci to clone the repo?

@T4rk1n
Copy link
Contributor Author

T4rk1n commented May 30, 2023

Hmm need to re-enable circleci to clone the repo?

Yes, the config are also using the old image and should be updated to use the cimg ones

@T4rk1n T4rk1n merged commit 994fb0a into master May 31, 2023
1 check passed
@T4rk1n T4rk1n deleted the update-webpack-docgen branch May 31, 2023 13:25
@T4rk1n T4rk1n mentioned this pull request May 31, 2023
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.

None yet

3 participants