Skip to content

Commit

Permalink
docs: document define behavior change
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 13, 2021
1 parent 7b3da03 commit 30deabf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ export default ({ command, mode }) => {

- **Type:** `Record<string, string>`

Define global variable replacements. Entries will be defined as globals during dev and statically replaced during build. Replacements are performed only when the match is surrounded by word boundaries (`\b`).
Define global variable replacements. Entries will be defined as globals during dev and statically replaced during build.

- Starting from `2.0.0-beta.70`, string values will be used as raw expressions, so if defining a string constant, it needs to be explicitly quoted (e.g. with `JSON.stringify`).

- Replacements are performed only when the match is surrounded by word boundaries (`\b`).

### plugins

Expand Down

0 comments on commit 30deabf

Please sign in to comment.