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

[KOA-5703]: Bump css-loader and postcss-loader #2901

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

olliecurtis
Copy link
Member

Bumps the following dependencies:

  • css-loader
  • postcss-loader

Makes required changes to webpack config for storybook to align with latest changes.

Remember to include the following changes:

  • README.md (If you have created a new component)
  • Component README.md
  • Tests
  • Storybook examples created/updated
  • For breaking changes or deprecating components/properties, migration guides added to the description of the PR. If the guide has large changes, consider creating a new Markdown page inside the component's docs folder and link it here

@github-actions
Copy link

github-actions bot commented Jul 3, 2023

Visit https://backpack.github.io/storybook-prs/2901 to see this build running in a browser.

@github-actions
Copy link

github-actions bot commented Jul 3, 2023

Visit https://backpack.github.io/storybook-prs/2901 to see this build running in a browser.

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

Visit https://backpack.github.io/storybook-prs/2901 to see this build running in a browser.

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

Visit https://backpack.github.io/storybook-prs/2901 to see this build running in a browser.

@@ -23,9 +23,8 @@ const sassFunctions = require('bpk-mixins/sass-functions');

const postCssPlugins = require('../scripts/webpack/postCssPlugins');

const { BPK_TOKENS, ENABLE_CSS_MODULES } = process.env;
Copy link
Contributor

@anambl anambl Jul 7, 2023

Choose a reason for hiding this comment

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

What was the purpose of ENABLE_CSS_MODULES var?

Copy link
Member Author

Choose a reason for hiding this comment

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

It looks to be super old configuration which going through our docs and setup we never actually use anywhere so looks to be an irrelevant variable.

It also doesn't line up and work with the configuration we need to provide in the newer css-loader so that we can specify our localIndentName as it would either be a boolean or an object, which we always need to provide the localIndentName, modules would always need to be an object :)

Hope that helps, let me know if not

@olliecurtis olliecurtis merged commit 3bbc859 into main Jul 7, 2023
7 checks passed
@olliecurtis olliecurtis deleted the KOA-5703-bump-loaders branch July 7, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants