https://github.com/rstuven/curlyfy-loader
curlyfy loader module for webpack
https://github.com/rstuven/curlyfy-loader
javascript loader webpack
Last synced: 11 months ago
JSON representation
curlyfy loader module for webpack
- Host: GitHub
- URL: https://github.com/rstuven/curlyfy-loader
- Owner: rstuven
- License: mit
- Created: 2015-04-26T00:47:58.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T19:05:42.000Z (almost 9 years ago)
- Last Synced: 2025-06-21T05:40:52.002Z (about 1 year ago)
- Topics: javascript, loader, webpack
- Language: JavaScript
- Size: 4.88 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
curlyfy-loader
==============
[](https://david-dm.org/rstuven/curlyfy-loader#info=dependencies)
> Add curly brackets to a whitespace indented module using [curlyfy](https://github.com/rstuven/curlyfy);
EXPERIMENTAL: Use at your own risk!
-----------------------------------
Install
-------
``` shell
npm install --save-dev curlyfy-loader
```
Usage
-----
It should be used in tandem with a curly language loader:
``` javascript
var jsmodule = require("babel!curlyfy!./module.js.noncurly");
var tsmodule = require("typescript!curlyfy!./module.ts.noncurly");
```
Or within the webpack config:
``` javascript
module: {
loaders: [
{ test: /\.js\.noncurly$/, exclude: /node_modules/, loader: 'babel!curlyfy'},
{ test: /\.ts\.noncurly$/, exclude: /node_modules/, loader: 'typescript!curlyfy'}
]
}
```
and then require normally:
``` javascript
var jsmodule = require("./module.js.noncurly");
var tsmodule = require("./module.ts.noncurly");
```
See webpack docs: [Using loaders](http://webpack.github.io/docs/using-loaders.html)
Options
-------
See the [curlyfy options](https://github.com/rstuven/curlyfy#options)
License
-------
MIT (http://www.opensource.org/licenses/mit-license.php)