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

Improve asset compilation in Builder UI #3905

Merged
merged 1 commit into from Oct 26, 2017
Merged

Improve asset compilation in Builder UI #3905

merged 1 commit into from Oct 26, 2017

Conversation

cnunciato
Copy link
Contributor

This change makes a few minor improvements to asset compilation in Builder:

  • Removes CSS linting from compilation (we have a separate task for that)
  • Builds CSS once before watching in the development environment (as passing --watch suppresses initial compilation)
  • Removes CSS and JS source maps from production builds
  • Single quotes in the Webpack config

Signed-off-by: Christian Nunciato cnunciato@chef.io

Fixes #3526.

tenor-243878721

This change makes a few minor improvements to asset compilation in Builder:

* Removes CSS linting from compilation (we have a separate task for that)
* Builds CSS once before watching in the development environment (as passing `—watch` suppresses initial compilation)
* Removes CSS and JS source maps from production builds
* Single quotes in the Webpack config

Signed-off-by: Christian Nunciato <cnunciato@chef.io>
@thesentinels
Copy link
Contributor

Thanks for the pull request! Here is what will happen next:

  1. Your PR will be reviewed by the maintainers
  2. If everything looks good, one of them will approve it, and your PR will be merged.

Thank you for contributing!

@@ -1,6 +1,8 @@
#!/bin/sh
set -x

npm run build-css -- --source-map=true
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the reasoning for source-map=true here? Since we are only doing compression in production, do we need source mapping at all now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This script is only run in dev, and yeah, we do use it in dev.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok cool

@chefsalim
Copy link
Contributor

tenor-22219499

@cnunciato
Copy link
Contributor Author

@thesentinels approve

@thesentinels
Copy link
Contributor

🤘 I am testing your branch against master before merging it. We do this to ensure that the master branch is never failing tests.

@thesentinels
Copy link
Contributor

:neckbeard: Travis CI has started testing this PR.

@thesentinels
Copy link
Contributor

💖 Travis CI reports this PR passed.

It always makes me feel nice when humans approve of one anothers work. I'm merging this PR now.

I just want you and the contributor to answer me one question:

gif-keyboard-3280869874741411265

@thesentinels thesentinels merged commit 3696e25 into master Oct 26, 2017
@thesentinels thesentinels deleted the cdn/assets branch October 26, 2017 02:14
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