coffee-loader
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -11,3 +11,5 @@ /* | ||
var jsRequest = loaderUtils.getCurrentRequest(this); | ||
var query = loaderUtils.parseQuery(this.query); | ||
var result = coffee.compile(source, { | ||
literate: query.literate, | ||
filename: coffeeRequest, | ||
@@ -14,0 +16,0 @@ debug: this.debug, |
{ | ||
"name": "coffee-loader", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "coffee loader module for webpack", |
@@ -8,9 +8,24 @@ # coffee-script loader for webpack | ||
// => return exports of executed and compiled file.coffee | ||
var exportsOfFile2 = require("coffee?literate!./file.litcoffee"); | ||
// can also compile literate files. | ||
``` | ||
Don't forget to polyfill `require` if you want to use it in node. | ||
See `webpack` documentation. | ||
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html) | ||
### Recommended configuration | ||
``` javascript | ||
{ | ||
module: { | ||
loaders: [ | ||
{ test: /\.coffee$/, loader: "coffee-loader" }, | ||
{ test: /\.(coffee\.md|litcoffee)$/, loader: "coffee-loader?literate" } | ||
] | ||
} | ||
} | ||
``` | ||
## License | ||
MIT (http://www.opensource.org/licenses/mit-license.php) | ||
MIT (http://www.opensource.org/licenses/mit-license.php) |
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
1964
25
31