0.0.11 • Published 7 years ago
coffeescript-loader v0.0.11
CoffeeScript 2 alpha loader for webpack
CoffeeScript 2 is coming! It adds support for ES2015 classes, async/await, and generates JavaScript using ES2015+ syntax. Learn more
Usage
var exportsOfFile = require("coffeescript!./file.coffee");
// => return exports of executed and compiled file.coffee
var exportsOfFile2 = require("coffeescript?literate!./file.litcoffee");
// can also compile literate files.
Recommended configuration
{
module: {
loaders: [
{ test: /\.coffee$/, loader: "coffeescript-loader" },
{ test: /\.(coffee\.md|litcoffee)$/, loader: "coffeescript-loader?literate" }
]
}
}