When using css?modules!postcss
, some where, the url('./relative') gets replaced to url('relative'), and the module mode of css-loader allows it to import only from moduleDirectories.
Interestingly, this happens in some postcss plugin I suppose. Removing postcss-loader helps, and everything works fine.
npm test