Uses cson-safe under the hood.
{
resolve: {
extensions: ['.cson']
},
module: {
loaders: [
{ test: /\.cson$/, loader: "cson" }
]
}
}
and then, as simple as
var contents = require("config") // will load config.cson
var contents = require("cson!./file.cson");