This PR slightly updated the logic when processing files through the minification process.
Currently a conditional statement tracks if the file size has been reduced but all of the files a re-written, this means that files of the same size, or even larger files could be produced.
Moving the file write commands within the conditional statement will ensure files are only written when the file size has been reduced.
Also, I have included updated package-lock.json that includes some minor dependency updates that should be no-breaking without further manual testing required.
This PR slightly updated the logic when processing files through the minification process.
Currently a conditional statement tracks if the file size has been reduced but all of the files a re-written, this means that files of the same size, or even larger files could be produced.
Moving the file write commands within the conditional statement will ensure files are only written when the file size has been reduced.
Also, I have included updated
package-lock.json
that includes some minor dependency updates that should be no-breaking without further manual testing required.