From 24b476a4c22ad1741bf1faf155106d6950adb901 Mon Sep 17 00:00:00 2001 From: dheran Date: Mon, 29 Aug 2016 17:08:48 +0530 Subject: [PATCH] VSC like tfs will mark all loc files as read only gulp can't overwrite for the second time. It will throw the error below. ionic $ [16:56:44] Starting 'html'... [16:56:44] 'html' errored after 23 ms [16:56:44] Error: EPERM: operation not permitted, open 'D:\SOURCE_CONTROL\TFS\MYAPP\www\build\pages\home\home.html' at Error (native) --- html-copy/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html-copy/index.js b/html-copy/index.js index 34f45ee..15ad41c 100644 --- a/html-copy/index.js +++ b/html-copy/index.js @@ -5,5 +5,5 @@ module.exports = function(options) { options.dest = options.dest || 'www/build'; return gulp.src(options.src) - .pipe(gulp.dest(options.dest)); + .pipe(gulp.dest(options.dest, {"mode": "0777"})); }