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

Bump postcss, postcss-custom-media, stylelint and stylelint-config-sass-guidelines #377

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const postcssGlobalData = require("@csstools/postcss-global-data");
const postcssCustomMedia = require("postcss-custom-media");

const linkResolver = require("./src/utils/linkResolver");
Expand Down Expand Up @@ -25,7 +26,15 @@ module.exports = {
{
resolve: "gatsby-plugin-postcss",
options: {
postCssPlugins: [postcssCustomMedia],
postCssPlugins: [
// This is needed to allow the custom media definitions to be
// accessible in all CSS modules. See
// https://github.com/csstools/postcss-plugins/blob/768449ddc7e226e735b9e507fd4fbd4c89c8de6c/plugins/postcss-custom-media/README.md#modular-css-processing
postcssGlobalData({
files: ["src/stylesheets/global.css"],
}),
postcssCustomMedia,
],
},
},
{
Expand Down
Loading
Loading