Skip to content

Commit

Permalink
Fixed population of the <html> lang attribute default for quick comma…
Browse files Browse the repository at this point in the history
…nds6
  • Loading branch information
insin committed Mar 24, 2020
1 parent 3163aad commit db1b597
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
- Chunk sorting was removed, but it seems to work as before for the ordering of the JavaScript files generated by nwb's build.
- The plugin nwb uses to inline the webpack runtime chunk was rewritten to use v4's new hooks.

## Fixed

- The `lang` attribute on `<html>` wasn't getting set to the default `'en'` when using the `nwb react`, `nwb preact` and `nwb inferno` quick development commands.

## Dependencies

- @babel/plugin-transform-react-jsx: v7.9.1 → [v7.9.4](https://github.com/babel/babel/releases/tag/v7.9.4)
Expand Down
2 changes: 2 additions & 0 deletions src/quickCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export function createBuildConfig(args: Object, options: QuickConfigOptions) {
},
plugins: {
html: {
lang: 'en',
mountId,
title: args.title || defaultTitle,
},
Expand Down Expand Up @@ -154,6 +155,7 @@ export function createServeConfig(args: Object, options: QuickConfigOptions) {
},
plugins: {
html: {
lang: 'en',
mountId,
title: args.title || defaultTitle,
},
Expand Down

0 comments on commit db1b597

Please sign in to comment.