Skip to content

daybrush/comment-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Comment Loader for webpack

Downloads and Installation

Installation with npm

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

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

Usage

use comment

/*@ .... */

comment-loader remove comment

example.js

/*@export default */class Test {
    //......
}

webpack

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

export default class Test {
    //......
}

License

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

About

Comment Loader removes comments for any purposes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published