# lua-amalg-webpack-plugin

> Bundle your Lua scripts with webpack

Latest version **0.1.0** (published 2021-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install lua-amalg-webpack-plugin
pnpm add lua-amalg-webpack-plugin
yarn add lua-amalg-webpack-plugin
bun add lua-amalg-webpack-plugin
```

## 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.0 |
| Published | 2021-12-25 |
| First published | 2021-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 118.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Bernhard Fritz |
| Maintainers | bernhardfritz |
| Keywords | webpack, plugin, lua, bundle |

## Links

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

## 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.1.0 (latest) — 2021-12-25

## README

<div align="center">
  <a href="https://github.com/webpack/webpack">
    <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
  </a>
</div>

# lua-amalg-webpack-plugin

This plugin uses <a href="https://github.com/siffiejoe/lua-amalg">lua-amalg</a> to bundle your Lua scripts.

## Getting Started

To begin, you'll need to install `lua-amalg-webpack-plugin`:

```console
npm install --save-dev lua-amalg-webpack-plugin
```

Then add the plugin to your `webpack` config. For example:

**webpack.config.js**

```js
const LuaAmalgWebpackPlugin = require('lua-amalg-webpack-plugin');

module.exports = {
  plugins: [new LuaAmalgWebpackPlugin()],
};
```

And run `webpack` via your preferred method.

## Options

|              Name               |   Type   |    Default     | Description                                 |
| :-----------------------------: | :------: | :------------: | :------------------------------------------ |
|       **[`main`](#main)**       | `String` | `src/main.lua` | Primary entry point to your program.        |
| **[`outputFile`](#outputFile)** | `String` |  `bundle.lua`  | Concatenate and emit output to single file. |

### `main`

Type: `String`
Default: `src/main.lua`

Primary entry point to your program.

```js
module.exports = {
  plugins: [
    new LuaAmalgWebpackPlugin({
      main: 'src/main.lua',
    }),
  ],
};
```

### `outputFile`

Type: `String`
Default: `bundle.lua`

Concatenate and emit output to single file.

```js
module.exports = {
  plugins: [
    new LuaAmalgWebpackPlugin({
      outputFile: 'bundle.lua',
    }),
  ],
};
```

# Examples

* [hello-lua](./examples/hello-lua)

# License

[MIT](./LICENSE)

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