mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
zip only web_root files
This commit is contained in:
1 parent
232bd9a22b
commit
51a5dc78d7
1 file changed
+1
-1
+1
-1
@@ -95,7 +95,7 @@ const [, , ...args] = process.argv;
|
|||||||
const files = args.map(f => ({
|
const files = args.map(f => ({
|
||||||
path: f,
|
path: f,
|
||||||
data: fs.readFileSync(f, 'utf8'),
|
data: fs.readFileSync(f, 'utf8'),
|
||||||
zip: true,
|
zip: !!f.match(/web_root\/.+/),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
|
|||||||
Reference in new issue
Block a user