# action-comment-loader

> Action comment for Webpack2

Latest version **0.0.1** (published 2017-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install action-comment-loader
pnpm add action-comment-loader
yarn add action-comment-loader
bun add action-comment-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-05-15 |
| First published | 2017-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Philippe Assis |
| Maintainers | philippeassis |
| Keywords | webpack, loader, webpack-loader, action-comment |

## Links

- npm: https://www.npmjs.com/package/action-comment-loader
- Repository: https://github.com/PhilippeAssis/action-comment-loader
- Homepage: https://github.com/PhilippeAssis/action-comment-loader#readme
- Issues: https://github.com/PhilippeAssis/action-comment-loader/issues
- npm.io page: https://npm.io/package/action-comment-loader

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [loader-utils](https://npm.io/package/loader-utils.md) ^1.1.0
- [action-comment](https://npm.io/package/action-comment.md) 0.0.4

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2017-05-15

## README

# Action Comment loader
For webpack2
This is a loader for action comment, to know about the action comment, go on [link](https://github.com/PhilippeAssis/actionComment)

## Install
`npm i --save-dev action-comment-loader`

## Use
### Example
```js
//...
module: {
  rules: [
    { test: /\.(js|vue|stylus|pug)$/,
      loader: 'action-comment-loader',
      'options': {
        'handles': {
          alert(line, index){
            return `alert("${line} in line ${index}")`;
          }
        }
      }
    }
//...
```

### With acHandles.js
```js
//...
module: {
  rules: [
    { test: /\.(js|vue|stylus|pug)$/,
      loader: 'action-comment-loader',
      'options': {
        'handles': require("./acHandles.js")
        }
      }
    }
//...
```

---
_Source: https://npm.io/package/action-comment-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
