https://github.com/dmihal/conditional-compile
Meteor package for conditionally including files for compilation
https://github.com/dmihal/conditional-compile
Last synced: 2 months ago
JSON representation
Meteor package for conditionally including files for compilation
- Host: GitHub
- URL: https://github.com/dmihal/conditional-compile
- Owner: dmihal
- Created: 2016-10-21T11:03:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-16T21:03:36.000Z (over 8 years ago)
- Last Synced: 2025-02-04T19:49:17.485Z (4 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Meteor Conditional Compile (beta)
This package allows JavaScript files to be conditionally included in a Meteor
application depending a configuration file.This can be used to disable features in production or to provide different
settings for different deployments.## Usage
1. Rename files from `filename.js` to `filename.cond.js`.
2. Create a file called `conditional-include.txt` in the root of your Meteor
project. This file should include all file prefixes to support.## Example
If the following `conditional-include.txt` file is used, any file named
`feature1.cond.js` will be included. Any other file with the extension
`.cond.js` will not be included.```feature1
```# Limitations
At the moment, the extension only supports JavaScript files and does not
support additional compile steps like ecmascript or coffeescript.