An open API service indexing awesome lists of open source software.

https://github.com/daybrush/comment-loader

Comment Loader removes comments for any purposes.
https://github.com/daybrush/comment-loader

Last synced: about 1 month ago
JSON representation

Comment Loader removes comments for any purposes.

Awesome Lists containing this project

README

          

# Comment Loader for webpack

## Downloads and Installation

### Installation with npm

The following code shows how to install **comment-loader** using npm.

```bash
$ npm install git+https://github.com/daybrush/comment-loader.git
```

## Usage

use comment

```javascript
/*@ .... */
```
comment-loader remove comment

### example.js
``` javascript
/*@export default */class Test {
//......
}

```

### webpack
``` javascript
var ExportPlugin = require("es6-export-plugin");
module.exports = {
entry: 'example.js',
output: {
filename: 'bundle.js',
path: __dirname + "/dist/",
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'comment-loader'
}
]
}
}
```

### compile
``` javascript
export default class Test {
//......
}
```

## License

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