Giter VIP home page Giter VIP logo

webpackbaleautojs's Introduction

webpack 打包 autojs

功能: 用于将autojs开发的模块化脚本, 多个js文件, 打包为一个js文件

必备条件

  1. webpack 基于 nodejs,电脑上必须安装 nodejs.

注意事项

  1. 入口文件: 在配置文件中修改, config.entry 是入口文件, config.base64 布尔值 是否对最终脚本base64
  2. 出口文件: __dirname + "/public/bundle.js"

操作步骤

  1. git 地址: https://github.com/snailuncle/webpackBaleAutojs
  2. git clone [email protected]:snailuncle/webpackBaleAutojs.git
  3. 以下指令均在 cmd 执行,记得 cd 到项目所在目录
  4. npm install
  5. webpack
  6. 执行完以上命令, public 文件夹下生成一个 bundle.js 文件,它可以在 autojs 中正常执行.

备注

如果有ui, 就在ui.layout()后面加个;, 因为是通过正则来提取ui的, 正则是: /ui\.layout\(([^;]*?)\);/

webpackbaleautojs's People

Contributors

snailuncle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.