Skip to content

Instantly share code, notes, and snippets.

@lcostea
Created November 12, 2017 10:39
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lcostea/1b289797015b729908479f87911c770c to your computer and use it in GitHub Desktop.
Save lcostea/1b289797015b729908479f87911c770c to your computer and use it in GitHub Desktop.
simple js to copy the web.config from the iisConfig folder to the build folder when using react-scripts
const fs = require('fs-extra');
const webConfigPath = './build/web.config';
if (fs.existsSync(webConfigPath)) {
fs.unlinkSync(webConfigPath);
}
fs.copySync('./iisConfig/web.config', webConfigPath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment