A
A
Alexander Drozdov2014-11-25 01:33:35
JavaScript
Alexander Drozdov, 2014-11-25 01:33:35

How to upload meteorjs to prod excluding images in bundle.tar.gz?

The bottom line is, when the meteor build command is executed , an archive is created where all the dependencies are compiled and the code itself with all the accompanying files ... which, for example, are in public / img, etc.
If you think about what will happen if there are a million files, he will collect all this into an archive, and this is not ice at all.
How can you avoid this, upload only the most necessary, code, some files, and not all at once?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Drozdov, 2014-11-25
@bagzon

Well, I found a way

//The bundler (tools/bundler.js) has a list of regexps that it ignores:

// files to ignore when bundling. node has no globs, so use regexps
var ignore_files = [
    /~$/, /^\.#/, /^#.*#$/,
    /^\.DS_Store$/, /^ehthumbs\.db$/, /^Icon.$/, /^Thumbs\.db$/,
    /^\.meteor$/, /* avoids scanning N^2 files when bundling all packages */
    /^\.git$/ /* often has too many files to watch */
];

stackoverflow.com/questions/16644780/how-to-exclud...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question