⚛️ 🚀 A progressive static site generator for React.
MIT License
Bot releases are hidden (Show)
Here is a list of package version changes. If a package hasn't been bumped, it means that there were no changes in that package.
@types/react-hot-loader
from TypeScript template (#1485)styled-components
peer dependency version range in react-static-plugin-styled-components
to allow newer versions of styled-components to be used (#1473)console.error
without arguments (#1509)git-promise
to 1.0.0, fixing a security vulnerability (#1522)getComponentForPath
properly return 404 page when route is invalid and 404 page exists (#1557)axios
to 0.21.1, fiing a security vulnerability (#1562)silent
option (#1330)react-static-plugin-file-watch-reload
to plugins listreact-static-plugin-sass
and react-static-plugin-less
(#1348)react-static-plugin-jss
for react-jss v10+. (#1367)DocumentProps
. These hashes can be used to construct a Content Security Policy in a meta tag without unsafe-inline
scripts. (#1373)basePath
edge case (#1344)withSiteData
(#1319)catch
of undefined
" (#1313)react-static-plugin-stylus
(#1244)Published by SleeplessByte about 5 years ago
renderProp
of Routes
(#1181)@miiton @nddery @jviotti and @alexjfno1, thank you for helping us, and especially me, get onboarded with all the current issues and also with all the help solving them.
⚠ Whilst this was not marked as a breaking change, the standard browserlist is a bit more modern than the previous standard browserlist. This may (but unlikely) break your site. Add a browserlist configuration to your own package.json
to solve this.
🚧 There is a known issue where on Windows, sometimes, build
or start
will hang. In these cases, try running with --debug
or --dev
. This will be resolved in a later version.
Published by tannerlinsley almost 7 years ago
config.paths
, which can now be used to customize dist
folder location and other file locations used by react-staticonStart
hook. Fires after the first successful dev build when running react-static start
onBuild
hook. Fires after a successful production build when running react-static build
config.devServer
, which can be used to customize the configuration for the webpack-dev-server used in development. (Thanks @rywils21!)config.getRoutes
is no longer required and will default to exporting a single root path.<Router>
component now supports a type
prop that can be: browser
, hash
, or memory
, which defines which type of history
object to create and use internally. Useful for non-web environments or situations where your app will be accessed in a filesystem or nested domain as opposed to a web server.Document
's <title>
tag can now be used as a fallback to any <title>
tag produced via the <Head>
component. (Thanks @EmilTholin!)