# webpack-plugin-acid

> Add your Acid static site to your webpack build

Latest version **0.1.5** (published 2016-05-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install webpack-plugin-acid
pnpm add webpack-plugin-acid
yarn add webpack-plugin-acid
bun add webpack-plugin-acid
```

## 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.1.5 |
| Published | 2016-05-31 |
| First published | 2016-04-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Drew Schrauf |
| Maintainers | drewschrauf |

## Links

- npm: https://www.npmjs.com/package/webpack-plugin-acid
- Repository: https://github.com/drewschrauf/webpack-plugin-acid
- Homepage: https://github.com/drewschrauf/webpack-plugin-acid#readme
- Issues: https://github.com/drewschrauf/webpack-plugin-acid/issues
- npm.io page: https://npm.io/package/webpack-plugin-acid

## Dependencies (1)

- [watch](https://npm.io/package/watch.md) ^0.17.1

## Recent versions

- 0.1.5 (latest) — 2016-05-31
- 0.1.4 — 2016-05-03
- 0.1.3 — 2016-04-02
- 0.1.2 — 2016-04-02
- 0.1.1 — 2016-04-02
- 0.1.0 — 2016-04-02

## README

# webpack-plugin-acid

`webpack-plugin-acid` lets you add your [Acid static site](https://github.com/drewschrauf/ameeno-acid) to your [Webpack](https://webpack.github.io/) build. This lets you automatically watch your templates and build your static site along with the rest of your assets.

It should be noted that this plugin simply adds the compiled HTML of your site to your Webpack output and does not actually pass the assets through your pipeline.

## Usage

Just add the plugin to your webpack.config.js:

    var AcidPlugin = require('webpack-plugin-acid');
    module.exports = {
        entry: {...},
        output: {...},
        module: {...},
        plugins: [
            new AcidPlugin()
        ]
    }

## Options

`webpack-plugin-acid` accepts the following options as an object:

    new AcidPlugin({
        config: {},
        watchPath: '...'
    })

- `config` (object, optional) - Causes the Acid instance to be initiated with the passed configuration object rather than loading it from `acid.config.js`.
- `watchPath` (string, optional) - Choose the directory to watch for changes to `*.marko` files. By default, this will watch for any templates in the entire project (excluding `node_modules`).

## Acknowledgements

This plugin was heavily inspired by (and shamelessly stole code from) [static-site-generator-webpack-plugin](https://github.com/markdalgleish/static-site-generator-webpack-plugin).

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