Closed aldarund closed 6 years ago
I have project with nuxt where i set publicPath during build based on env variable.
extend: function(config, ctx) { if (!ctx.isDev) { const awsS3AssetsBucketName = `blabla-${ process.env.STAGE }` config.output.publicPath = `https://s3.${ process.env.AWS_REGION }.amazonaws.com/${awsS3AssetsBucketName}/` } } }
Even if i change env variable ( so the publicPath changed) webapp-webpack-plugin still output old path until i clean its cache folder.
Thanks for reporting.
For the record, the fix is trivial and only requires adding publicPath to the loader's options.
publicPath
I have project with nuxt where i set publicPath during build based on env variable.
Even if i change env variable ( so the publicPath changed) webapp-webpack-plugin still output old path until i clean its cache folder.