Cannot get serve-index to work in devserver to allow seeing files list in directory

I have specified
module.exports = { devServer: { serveIndex: true}}
in vue.config.js
and installed the serve-index package, but when my JavaScript code attempts to look at a sub-directory under public, it is instead forced to the Vue provided index.html file content.