Skip to content

Commit

Permalink
publicPath cannot be null
Browse files Browse the repository at this point in the history
Webpack validation fails:
> webpack.publicPath = 'type: null'
>  Must be a String
  • Loading branch information
stephenwf authored Feb 23, 2018
1 parent b17ebd1 commit c841b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ module.exports = {

The exception is the React component demo app, which doesn't set a `publicPath`, generating a build without any root URL paths to static resources. This allows you to serve it at any path without configuration (e.g. on GitHub Project Pages), or open the generated `index.html` file directly in a browser, which is ideal for distributing app builds which don't require a server to run.

If you want to create a path-independent build, set `publicPath` to blank or `null`:
If you want to create a path-independent build, set `publicPath` to blank:

```js
module.exports = {
Expand Down

0 comments on commit c841b68

Please sign in to comment.