rembrembdocs

Output: /path/to/project/logo.svg


In the bundler, things are slightly different. The file is copied into `outdir` as-is, and the import is resolved as a relative path pointing to the copied file.

// Output var logo = "./logo.svg"; console.log(logo);


If a value is specified for `publicPath`, the import will use value as a prefix to construct an absolute path/URL.

Public path

Resolved import

`""` (default)

`/logo.svg`

`"/assets"`

`/assets/logo.svg`

`"https://cdn.example.com/"`

`https://cdn.example.com/logo.svg`