path.resolve(this.options.srcDir, 'static', browserconfigFileName) and content: '/' + browserconfigFileName, these paths should be taken from the Dir property.
What is expected ?
Put the file (and the path) in the right directory.
What is actually happening?
Always put the file in the /static folder.
This bug report is available on Nuxt community (#c176)
Version
v2.10.2
Reproduction link
https://github.com/nuxt-community/modules/blob/master/packages/browserconfig/index.js
Steps to reproduce
path.resolve(this.options.srcDir, 'static', browserconfigFileName)
andcontent: '/' + browserconfigFileName
, these paths should be taken from the Dir property.What is expected ?
Put the file (and the path) in the right directory.
What is actually happening?
Always put the file in the
/static
folder.