Skip to content

Commit

Permalink
chore (#16): adds formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tzmanics committed May 24, 2022
2 parents 2246907 + 752b190 commit 35b3a16
Show file tree
Hide file tree
Showing 121 changed files with 4,628 additions and 2,832 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"semi": true,
"tabWidth": 2,
}
6 changes: 2 additions & 4 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ import React from 'react';
import { NotificationProvider } from './src/context/AddItemNotificationProvider';

export const wrapRootElement = ({ element }) => (
<NotificationProvider>
{element}
</NotificationProvider>
);
<NotificationProvider>{element}</NotificationProvider>
);
36 changes: 18 additions & 18 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
module.exports = {
siteMetadata: {
title: `Gatsby Sydney Ecommerce Theme`,
siteUrl: `https://jamm.matter.design`,
},
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gatsby Sydney Ecommerce Theme`,
short_name: `Sydney`,
start_url: `/`,
background_color: `#000000`,
theme_color: `#ffffff`,
display: `standalone`,
icon: 'src/assets/favicon.png'
},
siteMetadata: {
title: `Gatsby Sydney Ecommerce Theme`,
siteUrl: `https://jamm.matter.design`,
},
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gatsby Sydney Ecommerce Theme`,
short_name: `Sydney`,
start_url: `/`,
background_color: `#000000`,
theme_color: `#ffffff`,
display: `standalone`,
icon: 'src/assets/favicon.png',
},
]
}
},
],
};
24 changes: 12 additions & 12 deletions gatsby-node.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// https://stackoverflow.com/questions/63124432/how-do-i-configure-mini-css-extract-plugin-in-gatsby
exports.onCreateWebpackConfig = helper => {
const { stage, actions, getConfig } = helper
if (stage === "develop" || stage === 'build-javascript') {
const config = getConfig()
const miniCssExtractPlugin = config.plugins.find(
plugin => plugin.constructor.name === "MiniCssExtractPlugin"
)
if (miniCssExtractPlugin) {
miniCssExtractPlugin.options.ignoreOrder = true
}
actions.replaceWebpackConfig(config)
exports.onCreateWebpackConfig = (helper) => {
const { stage, actions, getConfig } = helper;
if (stage === 'develop' || stage === 'build-javascript') {
const config = getConfig();
const miniCssExtractPlugin = config.plugins.find(
(plugin) => plugin.constructor.name === 'MiniCssExtractPlugin'
);
if (miniCssExtractPlugin) {
miniCssExtractPlugin.options.ignoreOrder = true;
}
}
actions.replaceWebpackConfig(config);
}
};
Loading

0 comments on commit 35b3a16

Please sign in to comment.