Failed to load https://api.tinify.com/shrink: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
gulp.src('scripts/*.js')
.pipe(
transform('utf8', (content, file) => {
return prettier.resolveConfig(file.history[0]).then((options) => {
return prettier.format(content, Object.assign(options, {filepath: file.history[0]}));
});
})
)
.pipe(gulp.dest(scripts));