-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/utils/build.js now requires postBuild function in gatsby-node (#273)
* lib/utils/build.js now requires postBuild function in gatsby-node Removes requirement for a post-build.js file in the root of the project for a custom post build step in gatsby build. Instead it requires for a postBuild export in the gatsby-node file in the root of the domain, where the webpack custom configuration is also stored. * Add error for post build and update README Added a better error message for custom post-build actions defined in gatsby-node.js, explains to user that file cannot be used. Updated README.md by removing post-build.js option in the project structure and including a new section explaining how to include a post-build function for users. * Ammend error message in post-build and README Correct some errors in the README. * Fixed linting error in lib/utils/build.js Changed strings from double to single quotes to avoid eslint error.
- Loading branch information
1 parent
ba77e0e
commit bdbe104
Showing
2 changed files
with
20 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters