0.1.0 • Published 2 years ago
lua-amalg-webpack-plugin v0.1.0
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
0.1.0
2 years ago