Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
coffee loader module for webpack
JavaScript
branch: master
Failed to load latest commit information.
.gitignore Initial commit
README.md Support literate coffeescript
index.js removed deprecated feature #10
package.json 0.7.2

README.md

coffee-script loader for webpack

Usage

var exportsOfFile = require("coffee!./file.coffee");
// => return exports of executed and compiled file.coffee

var exportsOfFile2 = require("coffee?literate!./file.litcoffee");
// can also compile literate files.

Documentation: Using loaders

Recommended configuration

{
    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)

Something went wrong with that request. Please try again.