4.3.0 • Published 5 years ago

@arcblock/gatsby-config v4.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

gatsby-config

Config files used to bootstrap and customize markdown page authoring pipeline

Usage

If the content repo have no package.json yet, create one with:

npm init -y

Then, add dependency for the content repo:

yarn add @arcblock/gatsby-config gatsby@2.1.17

Then create an gatsby-node.js at root directory with content:

const createConfig = require('@arcblock/gatsby-config/gatsby-node');
module.exports = createConfig();

And another gatsby-config.js at root directory with content:

const path = require('path');
const createConfig = require('@arcblock/gatsby-config/gatsby-config');

module.exports = createConfig({
  pagesPath: [path.resolve('./src/pages/')],
});

Then add commands to start and build the site in package.json

  "scripts": {
    "dev": "gatsby develop",
    "build": "gatsby build",
    "serve": "gatsby serve"
  }

Enable local instant preview with:

npm run dev
4.3.0

5 years ago

4.2.0

5 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.88.0

6 years ago

3.87.0

6 years ago

3.86.0

6 years ago

3.85.0

6 years ago

3.84.0

6 years ago

3.83.0

6 years ago

3.82.0

6 years ago

3.81.0

6 years ago

3.80.0

6 years ago

3.79.0

6 years ago

3.78.0

6 years ago

3.77.0

6 years ago

3.76.0

6 years ago

3.75.0

6 years ago

3.74.0

6 years ago

3.73.0

6 years ago

3.72.0

6 years ago

3.71.0

6 years ago

3.70.0

6 years ago

3.69.0

6 years ago

3.68.0

6 years ago

3.67.0

6 years ago

3.65.0

6 years ago

3.64.0

6 years ago

3.63.0

6 years ago

3.62.0

6 years ago

3.61.0

6 years ago

3.60.0

6 years ago

3.59.0

6 years ago

3.58.0

6 years ago

3.57.0

6 years ago

3.56.0

6 years ago

3.55.0

6 years ago

3.54.0

6 years ago

3.53.0

6 years ago

3.51.0

6 years ago

3.50.0

6 years ago

3.49.0

6 years ago

3.48.0

6 years ago

3.47.0

6 years ago

3.46.0

6 years ago

3.45.0

6 years ago

3.44.0

6 years ago

3.43.0

6 years ago

3.42.0

6 years ago

3.41.0

6 years ago

3.40.0

6 years ago

3.39.0

6 years ago

3.38.0

6 years ago

3.37.0

6 years ago

3.36.0

6 years ago

3.35.0

6 years ago

3.34.0

6 years ago

3.33.0

6 years ago

3.32.0

6 years ago

3.31.0

6 years ago

3.30.0

6 years ago

3.29.0

6 years ago

3.28.0

6 years ago

3.27.1

6 years ago

3.27.0

6 years ago

3.24.0

6 years ago

3.23.0

6 years ago

3.22.0

6 years ago

3.21.0

6 years ago

3.20.0

6 years ago

3.19.0

6 years ago

3.18.0

6 years ago

3.17.0

6 years ago

3.16.0

6 years ago

3.15.0

6 years ago

3.14.0

6 years ago

3.13.0

6 years ago

3.12.0

6 years ago

3.11.0

6 years ago

3.10.0

6 years ago

3.9.0

6 years ago

3.8.0

6 years ago

3.7.0

6 years ago

3.6.0

6 years ago

3.5.0

6 years ago

3.4.0

6 years ago

3.3.0

6 years ago

3.2.0

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

0.1.0

6 years ago