Skip to content

Change Log

Please visit the Razzle release page for all historical releases.

v3.2.0-canary.1

Published on Tue Jul 28 2020.

Here are some of the fixes and new features.

feat(razzle): make configuration promise based fix: deprecate createConfig so plugin tests have time to update before next major release feat(razzle): add support for typescript to razzle core fix(css): make sure only one mini-css-extract-plugin is present fix(razzle): fix issue with DEV_PORT env var and client only razzle start feat(razzle): support paths in jsconfig and tsconfig feat(create-razzle-app): add support for npm/github/git/file example templates feat(less/scss): support postcss.config js and modules in less and scss plugin feat(razzle): add support for postcss.config.js feat(razzle): add experimental support for react-refresh feat(examples): add with-single-exposed-port example

v3.1.6

Published on Sun Jul 26 2020.

Patches

  • Fix: updated spa example with working env var: fd852abd36b0cfdb139434176c681f18f10774f1
  • Fix(css): add back localIdentName to css modules: 999a2c1f65bcf49f0ce968a3b130b0416000959e
  • Fix(css): add one more missed localIdentName: eea3ac3cda299d4338af71f02f692377faa142e7
  • Docs: update getting started duplicate paragraphs: a75b0a225abf54074916130b50b611caf29949d3
  • Fix(razzle): manifest chunk name fallback to entry.id: fb2d3087ce0b503baa6549823ef2e2353cd3a4e1

v3.1.5

Published on Sat Jul 04 2020.

Patches

  • Fix(scss): add mini-css-extract-plugin to peerDependencies to fix npm install: 018811309c2be36e4d4159f9f2ffd88440be6ab7

v3.1.4

Published on Fri Jun 26 2020.

Patches

  • Fix(css): make sure only one mini-css-extract-plugin is present: eca432c694689b5775eb05243aeccf7daa287a56

v3.1.3

Published on Thu May 14 2020.

Patches

  • Fix(razzle): logger import: #1299

Credits

Huge thanks to @sumanbh for helping!

v3.1.2

Published on Wed May 13 2020.

Patches

  • Fix: complement CSS loader setup with pre-3.1 configuration

v3.1.1

Published on Sun May 10 2020.

This is a patch release to fix some issues in 3.1.0

Patches

  • Update README.md
  • Fix(test): master branch
  • Updating Examples: #1278
  • Fix: scss modules build: #1281
  • Fix: correct formatting of --inspect/inspect-brk in start script

Credits

Huge thanks to @nimaa77 for helping!

v3.1.0

Published on Sat Apr 25 2020.

Long time no see

A new release after a long time, but no worries we have ci/cd for deployments now so we can tag a new release any time that we want. 🚀 (maybe two releases per month)

and we are working on razzle to make it the best SSR solution that you may ever find on Github.

if you need any new features or you had any questions ❓ feel free to open an issue, I and @fivethreeo are happy to help you guys.

What's new

  1. SPA mode In addition to universal/isomorphic applications, Razzle can build a single page (or client-only) applications. To do this, you can remove index.js and server.js then index.html file inside the public folder at the end pass --type=spa to your package.json's scripts like so:
"scripts": {
-  "start": "razzle start",
+  "start": "razzle start --type=spa",
-  "build": "razzle build",
+  "build": "razzle build --type=spa",
  "test": "razzle test --env=jsdom",
-  "start:prod": "NODE_ENV=production node build/server.js"
+  "start:prod": "serve -s build/public"
}

https://github.com/jaredpalmer/razzle#build-types 2. Absolute Imports create a new jsconfig.jsonfile in root of the project js { "compilerOptions": { "baseUrl": "src" }, "include": ["src"] } and then you can use import files directly from src directory: js import Button 'components/Button'; (also works with typescript and tsconfig.json)

  1. razzle-plugin-scss: now you can use CSS modules with sass files jsx import styles from './home.module.scss'

  2. Expanding Environment Variables In .env ```bash # .env file

DOMAIN=www.example.com RAZZLE_FOO=$DOMAIN/foo RAZZLE_BAR=$DOMAIN/bar ```

Note

Minor Changes and Patches are not complete in this list there many more, some of them listed here

Minor Changes

  • Eat webpack-dev-server logs: #1255
  • Update jest.config.json: #1259
  • Merge branch 'next': c3422de4f91a2f869502edac0c101996c26391bb

Patches

  • Fix(scss-plugin): use onlyLocals option: #1254

Credits

Huge thanks to @fivethreeo for helping!

v3.1.0-canary.9

Published on Sat Apr 25 2020.

Minor Changes

  • Fix production sourcemaps: #717
  • Update createJestConfig.js: #719
  • Mdx plugin improvements: #732
  • Cleanup: remove .js extensions from require: e24934bcef5a1956199751215e8562eac73f4b63
  • Update css chunks: use [name] instead of
  • Add CLIENTPUBLICPATH env var for local dev environments that don't use localhost (e.g. VMs, Docker): #761
  • Feature/scss plugin: #786
  • Use npx: #783
  • Update createJestConfig.js: #836
  • Fix(scss-plugin): use onlyLocals option: #1254
  • Eat webpack-dev-server logs: #1255
  • Update jest.config.json: #1259

Patches

  • Use the correct port when PORT is not set: #723
  • Fix for '[HMR] You need to restart the application!' on server sided err: c8b55bebd5c4dadb6953dd3e8d94fac084c854d4
  • Fix HMR : client was not working + mismatch between server/client: #749
  • Update examples to recover from HMR error: #763
  • Set template package version back to 0.1.0: #760
  • CLIENTPUBLICPATH default was being set in two places that computed different values. Remove the erroneous one.: #779

Credits

Huge thanks to @jpetitcolas, @jamalc, @jeetiss, @hrasoa, @gregmartyn, @crosscompile, @olehreznichenko, @xiaoyuhen, @fivethreeo, and @bkonkle for helping!

v3.1.0-canary.5

Published on Thu Apr 16 2020.

Initial release