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

Webpack fix #803

Merged
merged 2 commits into from
Oct 26, 2020
Merged

Webpack fix #803

merged 2 commits into from
Oct 26, 2020

Conversation

brdunfield
Copy link
Contributor

@brdunfield brdunfield commented Oct 23, 2020

When adding tailwind I had to change up the webpack config. Turns out I didn't quite do it correctly and it was not picking up some styles that go into main.min.js, particularly for the Calendar component.

Closes cds-snc/notification-api#1162

That said, I still would not want to commit main.min.js changes until we remove / fix moment.js (cds-snc/notification-api#1150) as it still adds a lot of garbage to the file. However if it is accidentally committed / updated before that fix happens, it won't break anything this time.

To test:

  • Checkout branch locally
  • run npm run webpack
  • verify that main.min.js has been changed
  • run the app and see that all styles are still in place, including the calendar component

@maxneuvians maxneuvians temporarily deployed to notification-webpack-fi-yvnssm October 23, 2020 19:22 Inactive
Copy link
Contributor

@AntoineAugusti AntoineAugusti left a comment

Choose a reason for hiding this comment

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

Tested locally with success!

@brdunfield brdunfield merged commit c8baad0 into master Oct 26, 2020
@brdunfield brdunfield deleted the webpack-fix branch October 26, 2020 14:21
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.

Fix npm run webpack
3 participants