Compiler plugin to import YAML files wih endings .yaml and .yml
meteor add qnipp:yaml
import config from './config.yaml';
Importing YAML files is restricted to the safe schema, so functions and regexps are not supported.
Example: Load a configuration file from the assets located in the private
directory.
import yaml from 'meteor/qnipp:yaml';
const mainConfig = yaml.load(Assets.getText('config/main.yaml'));
See https://github.com/nodeca/js-yaml for the complete API.
MIT