cson-loader

CSON loader module for webpack

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cson-loader
1300.1.08 years ago9 years agoMinified + gzip package size for cson-loader in KB

Readme

CSON loader for webpack
Uses cson-safe under the hood.

Recommended Usage

{
	resolve: {
		extensions: ['.cson']
	},
	module: {
		loaders: [
			{ test: /\.cson$/, loader: "cson" }
		]
	}
}

and then, as simple as
var contents = require("config") // will load config.cson

Alternate Usage

var contents = require("cson!./file.cson");

Documentation: Using loaders

License

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