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

Add correct mime type to headers #240

Merged
merged 2 commits into from
Nov 18, 2021
Merged

Conversation

jsonporter
Copy link
Contributor

This commit appends to #235 but moves the webpack-plugin-serve middleware to apply to both prod and dev builds.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Serve middleware sets the MIME type of main-[hash].js to `application/javascrtipt'. This middleware was initially configured to apply to dev-only; this change applies it to both prod and dev builds.

Tracking Issue

Follow-up issue

#235

@jsonporter jsonporter force-pushed the add-mime-type-to-prod-headers branch from 8dd9c90 to f8ff141 Compare November 17, 2021 22:42
@codecov
Copy link

codecov bot commented Nov 17, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@5e83da6). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #240   +/-   ##
=========================================
  Coverage          ?   63.44%           
=========================================
  Files             ?      365           
  Lines             ?     7909           
  Branches          ?     1385           
=========================================
  Hits              ?     5018           
  Misses            ?     2891           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e83da6...06b8785. Read the comment docs.

govalt
govalt previously approved these changes Nov 17, 2021
Copy link
Contributor

@govalt govalt left a comment

Choose a reason for hiding this comment

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

LGTM!

Signed-off-by: Jason Porter <[email protected]>
@jsonporter jsonporter force-pushed the add-mime-type-to-prod-headers branch from 53a182c to 06b8785 Compare November 17, 2021 23:38
Copy link
Contributor

@EngHabu EngHabu left a comment

Choose a reason for hiding this comment

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

rubber stamp

@jsonporter jsonporter merged commit 01b0930 into master Nov 18, 2021
@flyte-bot
Copy link
Collaborator

🎉 This PR is included in version 0.31.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@anrusina anrusina deleted the add-mime-type-to-prod-headers branch January 14, 2022 20:47
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.

4 participants