Generate web.config file when running “npm run build”

Vue CLI generated projects are configured to copy anything in the public folder directly into the build output directory (dist by default). They achieve this with the Webpack Copy plugin.

The only exception is the index.html file which undergoes some pre-processing to inject scripts and stylesheets before being copied.

With that in mind, put your web.config file in the public directory and it will be included verbatim in your builds.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top