# webpack-handlebars-precompiler

> A webpack plugin which is intended to precompile handlebars templates, partials and helpers into one concatenated file

Latest version **1.1.0** (published 2017-10-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-handlebars-precompiler
pnpm add webpack-handlebars-precompiler
yarn add webpack-handlebars-precompiler
bun add webpack-handlebars-precompiler
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-10-17 |
| First published | 2017-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dmitriy Dudkevich |
| Maintainers | dudagod |
| Keywords | webpack, handlebars, plugin, precompile |

## Links

- npm: https://www.npmjs.com/package/webpack-handlebars-precompiler
- Repository: https://github.com/DudaGod/webpack-handlebars-precompiler
- Issues: https://github.com/DudaGod/webpack-handlebars-precompiler/issues
- npm.io page: https://npm.io/package/webpack-handlebars-precompiler

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0
- [handlebars](https://npm.io/package/handlebars.md) ^4.0.10

## 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

- 1.1.0 (latest) — 2017-10-17
- 1.0.0 — 2017-10-05
- 0.0.1 — 2017-10-03

## README

# webpack-handlebars-precompiler

A webpack plugin to precompile handlebars templates, partials and helpers into one concatenated file

## Installation

`npm i webpack-handlebars-precompiler --save-dev`

## Usage

### Example

```javascript
const HandlebarsPrecompiler = require('webpack-handlebars-precompiler');

module.exports = {
    ...
    plugins: [
        new HandlebarsPrecompiler({
            precompileOpts: {preventIndent: true},
            templatesPath: path.join(__dirname, 'templates'),
            templatesExt: '.hbs',
            helpersPath: path.join(__dirname, 'helpers'), // optional
            outputFile: path.join(__dirname, 'some/folder/bundle.js')
    })
  ]
  ...
}
```

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