make sure newResource for NormalModuleReplacementPlugin is an absolute path