I am looking to 'modify' a file that is stored on my server, for example:
<link rel="stylesheet" href="css/plugin.scss">
Not only that, but I also want to specifically edit a line within the SASS file. In SASS, you can declare variables in CSS, so I need to use JavaScript to search for the string:
'$increment:
If the string is found, I need to determine the line it is on and replace the entire line with:
'$increment:10;
Essentially, I want to create a file that can be downloaded by the user and customized based on the settings they choose using an HTML input field.
If there is a simpler or better way to explain this, I am open to suggestions :)