Skip to content

Commit

Permalink
added code formatting apis
Browse files Browse the repository at this point in the history
  • Loading branch information
theajr committed Oct 23, 2019
1 parent e61197d commit ddd4c1d
Show file tree
Hide file tree
Showing 6 changed files with 11,343 additions and 13,570 deletions.
28 changes: 22 additions & 6 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,40 @@
*/

// You can delete this file if you're not using it
const path = require(`path`)
const path = require(`path`);

exports.createPages = ({ graphql, actions }) => {
const { createPage } = actions
const page = path.resolve(`src/pages/index.js`)
const { createPage } = actions;
const page = path.resolve(`src/pages/index.js`);
createPage({
path: `/webpack`,
component: page,
context: {
selectedTab: 'webpack',
},
})
});

createPage({
path: `/parcel`,
component: page,
context: {
selectedTab: 'parcel',
},
})
}
});

createPage({
path: `/rollup`,
component: page,
context: {
selectedTab: 'rollup',
},
});
};

exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
node: {
fs: 'empty',
},
});
};
Loading

0 comments on commit ddd4c1d

Please sign in to comment.