Skip to content

Commit

Permalink
fix(bug): Add slashes if win32
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusriga committed May 5, 2019
1 parent 39bff44 commit 5bda659
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/.cache/GlobalStyleComponent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import GlobalStyleComponent from "C:\\Users\\magnusga\\Dev\\plugins\\gatsby-plugin-global-styles\\src\\styles\\GlobalStyleComponent";
export default GlobalStyleComponent;
2 changes: 2 additions & 0 deletions src/.cache/GlobalStylePropsOther.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const otherProps = {"light":true};
export default otherProps;
2 changes: 2 additions & 0 deletions src/.cache/GlobalStylePropsTheme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import theme from "C:\\Users\\magnusga\\Dev\\plugins\\gatsby-plugin-global-styles\\src\\styles\\theme";
export default theme;
4 changes: 2 additions & 2 deletions src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const onPreBootstrap = ({ store }, pluginOptions) => {
export default GlobalStyleComponent;
`;

fixPath(module);
module = fixPath(module);
} else {
module = `import { createGlobalStyle } from '@nfront/global-styles';
const GlobalStyleComponent = createGlobalStyle\`\`;
Expand All @@ -54,7 +54,7 @@ export default GlobalStyleComponent;
export default theme;
`;

fixPath(module);
module = fixPath(module);
} else {
module = `const defaultTheme = { typography: { fontFamily: 'Arial' } };
export default defaultTheme;
Expand Down

0 comments on commit 5bda659

Please sign in to comment.