Last active
December 18, 2015 13:58
-
-
Save Pent/5793360 to your computer and use it in GitHub Desktop.
Check Meteor for bundled or development environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var path = Npm.require("path"); | |
| var base = path.resolve('.'); | |
| if (base == '/'){ | |
| base = path.dirname(global.require.main.filename); | |
| } | |
| var publicPath = path.resolve(base+'/public/'); | |
| var staticPath = path.resolve(base+'/static/'); | |
| if (path.existsSync(staticPath)){ | |
| //code for server | |
| } else { | |
| //code for development | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment