RobotsAndPencils / react-gantry

R&P's React Starter Kit
4 stars 1 forks source link

External SVGs in SCSS are not handled correctly for production mode #33

Closed akrigline closed 6 years ago

akrigline commented 6 years ago

External background Image SVG files are not handled correctly by webpack.

.cancel {
  background: url("/src/assets/svg/cancel.svg?external");
}

This doesn't get copied over in dist.

akrigline commented 6 years ago

Nevermind, this is a feature, not a bug.

If a path is being evaluated by css loader and it is not a relative path (or starts with '/'), css loader will leave it alone. All paths must be relative to the current file.