curlyfy-loader

2.0.0 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i curlyfy-loader

Weekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • rstuven