2.0.0 • Published 8 years ago

curlyfy-loader v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

curlyfy-loader

dependencies Status

Add curly brackets to a whitespace indented module using curlyfy;

EXPERIMENTAL: Use at your own risk!

Install

npm install --save-dev curlyfy-loader

Usage

It should be used in tandem with a curly language loader:

var jsmodule = require("babel!curlyfy!./module.js.noncurly");
var tsmodule = require("typescript!curlyfy!./module.ts.noncurly");

Or within the webpack config:

module: {
  loaders: [
    { test: /\.js\.noncurly$/, exclude: /node_modules/, loader: 'babel!curlyfy'},
    { test: /\.ts\.noncurly$/, exclude: /node_modules/, loader: 'typescript!curlyfy'}    
  ]
}

and then require normally:

var jsmodule = require("./module.js.noncurly");
var tsmodule = require("./module.ts.noncurly");

See webpack docs: Using loaders

Options

See the curlyfy options

License

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

2.0.0

8 years ago

1.1.0

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago