- Put the routes module on
window
to support experimental idea. See this issue for more](#537). commit
- Removed the package
sharp
as it's not used and is preventing Gatsby 1.0 from being installed on Windows. commit
- Extension API
swOnUpdated
for when a service worker finishes updating. Use this to alert users of your app to reload to see the latest version. commit
- hot reloading now fully works. Apparently you can't use function
components for top-level routes on react-router with react-hot-loader
3.0
¯\_(ツ)_/¯
#532 and commit - Webpack needs the help of an obscure setting
recordsPath
to preserve module ids across builds. Big thanks to @NekR for pointing this out to me. Previous to this change, loading changed JS chunks could cause a JS error as the module ids the new chunk expects wouldn't match the module ids from the older chunks. #533
- Disabled hard-source-webpack-plugin. It speeds up builds significantly but has been causing hard-to-debug errors while developing. We'll circle back to it down the road. commit
- Restored using ChunkManifestPlugin. It was disabled while trying to debug the mismatched module id bug but that being fixed, we're using it again. commit
- Name modules ids in development for easier debugging. Primary benefit is you can see which modules are getting hot reloaded. commit
- Removed entries from the webpack config looking for
node_modules/gatsby/node_modules
. This was added to help when developing Gatsby usingnpm link
but when Gatsby is installed regularly, it then fails the Webpack validation asnode_modules/gatsby/node_modules
doesn't now exist.
- extension API for adding types to the GraphQL schema commit
- Use babel-traverse instead of using babel-plugin so that don't say done early when running graphql queries that have async resolvers commit
- hard-source-webpack-plugin commit
- New replacement API to wrap root component (useful for Redux, et al.) commit
- yarn.lock commit
- Disable extracting the Webpack chunk manifest until understand why this breaks updates when using Service Workers commit
- Add more file extensions to file/url loader config. Default to url loader unless it never makes sense to use data-uri e.g. favicons.
- Use api-runner-browser for calling browser extension APIs/replacements. Prep for plugin system.
- Add extension API
clientEntry
that let's site code and plugins to run code at the very start of client app.
- Add config to uglify to ignore ie8.
- Disable building AppCache until can research if useful.
- Turn on screw_ie8 options in UglifyJS.
- Actually use the "sources" key from gatsby-config.js for looking for markdown files. This will be getting an overhaul soon.
- Don't use null-loader for css during the build-js stage as this prevents offline-plugin from caching files referenced in your CSS.
- Add missing publicPath for build-html step.
- Introduce way to programatically add components to
<head>
+ API to take over SSR rendering a39c2a5 - Extract webpack manifest from commons.js so it doesn't change on every build improving its cachability 0941d33
- Always add babel-plugin-add-module-exports 97f083d
- Upgraded React Hot Loader to 3.0-beta5 5185c3a
- Ensure bundle names for components and paths are unique 342030d a1dfe19
- Remove old code loading config.toml 66f901
- New system for specifying page layouts inspired by Jekyll.
<HTMLScripts />
and<HTMLStyles />
helper components for rendering correct scripts and styles in your html.js,- Validate at runtime gatsby-config.js and page objects.
- Start of new plugin system.
- New extension API:
onPostCreatePages
— called with pages after all pages are created. Useful for programmatically modifying pages created in plugins.
- Removed remaining 0.x code
- Exit if can't find local install of Gatsby. 030f655
- Fix folder hierarchy for looking for loaders and modules #435
- Changed default
Config
GraphQL type toSite
and added some Jekyll-inspired fields.
- Initial versions of new GraphQL data layer, PRPL pattern, programmatic routes, code splitting, supporting long-term caching of JS files.