yaml-loader
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -6,3 +6,3 @@ var yaml = require('js-yaml'); | ||
var res = yaml.safeLoad(source); | ||
return JSON.stringify(res, undefined, '\t'); | ||
return 'module.exports = ' + JSON.stringify(res, undefined, '\t'); | ||
}; |
{ | ||
"name": "yaml-loader", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "YAML loader for webpack (converts YAML to JSON)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# yaml-loader for webpack | ||
YAML loader for [webpack](http://webpack.github.io/). Converts YAML to JSON. You should chain it with [json-loader](https://github.com/webpack/json-loader). | ||
YAML loader for [webpack](http://webpack.github.io/). Converts YAML to JSON. | ||
@@ -14,3 +14,3 @@ ## Installation | ||
``` javascript | ||
var json = require("json!yaml!./file.yml"); | ||
var json = require("yaml!./file.yml"); | ||
// => returns file.yml as javascript object | ||
@@ -17,0 +17,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2813