Skip to content

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Aug 12, 2019

WHY are these changes introduced?

Maintaining our own CDN distribution of our CSS files is a little annoying as it leads to more complex builds. Let's let unpkg handle our CDN styles.

The first step to that is adding minified styles into npm package - that's this PR.
The second step is ripping out our build config that uploads files to sdks.shopifycdn.com and updates our links to unpkg.com files (that'll be a new PR after we do an RC containing this change)

WHAT is this pull request doing?

Adds styles.min.css to our npm package

How to 🎩

  • Run yarn run build and see that styles.min.css is generated
  • Run npm pack then extract the generated tgz and see that styles.min.css is included in the package folder
  • See that styles.min.css is excluded from git and linting configs
  • See that running yarn run clean deletes styles.min.css

In preparation for using unpkg as a CDN source
@BPScott BPScott requested a review from AndrewMusgrave August 12, 2019 22:06
@BPScott BPScott temporarily deployed to polaris-react-pr-1957 August 12, 2019 22:06 Inactive
@BPScott BPScott added the 🤖Skip Changelog Causes CI to ignore changelog update check. label Aug 13, 2019
@BPScott
Copy link
Member Author

BPScott commented Aug 13, 2019

Skipping the changelog on this PR, I'll write a changelog entry in the follow up PR that talks about changing URLs

Copy link
Member

@AndrewMusgrave AndrewMusgrave left a comment

Choose a reason for hiding this comment

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

@BPScott BPScott merged commit 864c64f into master Aug 13, 2019
@BPScott BPScott deleted the minified-css-in-npm branch August 13, 2019 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖Skip Changelog Causes CI to ignore changelog update check.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants