0.1.0 • Published 2 years ago

lua-amalg-webpack-plugin v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

lua-amalg-webpack-plugin

This plugin uses lua-amalg to bundle your Lua scripts.

Getting Started

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

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

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

webpack.config.js

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

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

And run webpack via your preferred method.

Options

NameTypeDefaultDescription
mainStringsrc/main.luaPrimary entry point to your program.
outputFileStringbundle.luaConcatenate and emit output to single file.

main

Type: String Default: src/main.lua

Primary entry point to your program.

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

outputFile

Type: String Default: bundle.lua

Concatenate and emit output to single file.

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

Examples

License

MIT