bholloway / resolve-url-loader

Webpack loader that resolves relative paths in url() statements based on the original source file
563 stars 71 forks source link

Does resolve-url-loader need source maps to be enabled? #121

Closed thasmo closed 5 years ago

thasmo commented 5 years ago

It makes use of the source-map to find the original source file and rewrite url() statements.

Reading this documentation snippet it's not clear to me if resolve-url-loader needs source maps enabled to be working correctly. We do not generate source maps on production servers, so I was wondering if resolve-url-loader will still work then?

thasmo commented 5 years ago

Nevermind, just found it.

source-maps required for loaders preceding resolve-url-loader (regardless of devtool).