Skip to content

rstuven/curlyfy-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

curlyfy loader module for webpack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published