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.
- Host: GitHub
- URL: https://github.com/daybrush/comment-loader
- Owner: daybrush
- Created: 2017-03-28T08:31:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-28T08:40:49.000Z (over 8 years ago)
- Last Synced: 2025-01-23T02:08:38.869Z (9 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)