cson-loader

0.1.0 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i cson-loader

Weekly Downloads

48

Version

0.1.0

License

Public Domain

Last publish

Collaborators

  • awnist