mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-01 05:52:32 +07:00
zip only web_root files
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ const [, , ...args] = process.argv;
|
||||
const files = args.map(f => ({
|
||||
path: f,
|
||||
data: fs.readFileSync(f, 'utf8'),
|
||||
zip: true,
|
||||
zip: !!f.match(/web_root\/.+/),
|
||||
}));
|
||||
|
||||
(async () => {
|
||||
|
||||
Reference in New Issue
Block a user