0.0.11 • Published 7 years ago

coffeescript-loader v0.0.11

Weekly downloads
34
License
-
Repository
-
Last release
7 years ago

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.

Documentation: Using loaders

Recommended configuration

{
  module: {
    loaders: [
      { test: /\.coffee$/, loader: "coffeescript-loader" },
      { test: /\.(coffee\.md|litcoffee)$/, loader: "coffeescript-loader?literate" }
    ]
  }
}

License

MIT (http://www.opensource.org/licenses/mit-license.php)