Skip to content
master
Switch branches/tags
Code
This branch is up to date with master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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" }
		]
	}
}

Caching

An option to save the result of the compilation to disk exists.

    module: {
        loaders: [
            {
                test: /\.coffee$/,
                loader: 'coffee',
                query: {
                    cacheDirectory: '.coffee-cache'
                }
            }
        ]
    }

License

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

About

coffee loader module for webpack

Resources

Releases

No releases published

Packages

No packages published