# webpackBaleAutojs **Repository Path**: shanlan/webpackBaleAutojs ## Basic Information - **Project Name**: webpackBaleAutojs - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # webpack 打包 autojs # 功能: 用于将autojs开发的模块化脚本, 多个js文件, 打包为一个js文件 ## 必备条件 1. webpack 基于 nodejs,电脑上必须安装 nodejs. ## 注意事项 2. 入口文件: 在配置文件中修改, config.entry 是入口文件, config.base64 布尔值 是否对最终脚本base64 3. 出口文件: \_\_dirname + "/public/bundle.js" ## 操作步骤 1. git 地址: [https://github.com/snailuncle/webpackBaleAutojs](https://github.com/snailuncle/webpackBaleAutojs) 2. git clone git@github.com:snailuncle/webpackBaleAutojs.git 3. 以下指令均在 cmd 执行,记得 cd 到项目所在目录 4. npm install 5. webpack 6. 执行完以上命令, public 文件夹下生成一个 bundle.js 文件,它可以在 autojs 中正常执行. ## 备注 如果有ui, 就在ui.layout()后面加个;, 因为是通过正则来提取ui的, 正则是: /ui\\.layout\\(([^;]*?)\\);/