npm.io
0.1.0 • Published 4 years ago

lua-amalg-webpack-plugin

Licence
MIT
Version
0.1.0
Deps
0
Size
118 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

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

Name Type Default Description
main String src/main.lua Primary entry point to your program.
outputFile String bundle.lua Concatenate 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

Keywords