Closed RodrigoTomeES closed 1 year ago
I am using this plugin to implement the Facade Pattern for heavy components in NextJS. How? I import the manifest and read the key of my chunk to preconnect with it.
Why I need this feature? Because in NextJS the manifest should be in /public and by the default the plugin save the manifest in .next folder.
An option to set the path where the file should be saved.
Thanks!
You can use option fileName with an absolute path like
fileName
new WebpackManifestPlugin({ fileName: path.join(__dirname, 'relative/path/to/manifest.json') })
Feature Use Case
I am using this plugin to implement the Facade Pattern for heavy components in NextJS. How? I import the manifest and read the key of my chunk to preconnect with it.
Why I need this feature? Because in NextJS the manifest should be in /public and by the default the plugin save the manifest in .next folder.
Feature Proposal
An option to set the path where the file should be saved.
Thanks!