New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

autojs-ui-loader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autojs-ui-loader

webpack 打包 autojs UI

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

可以使 webpack 打包 autojs UI

安装

npm i autojs-ui-loader --dev

使用

  • 在 loader 加上。( 推荐使用 jsx 或 tsx 编写 autojs UI )
{
	test: /\.tsx?$/,
	use: 'autojs-ui-loader',
	exclude: /node_modules/,
}
  • 在 plugins 加上
const { AutoUIPlugin } = require('autojs-ui-loader')
...
plugins: [
	new AutoUIPlugin({
		buildPath: path.join(__dirname, 'dist'),
		fileFlag: 'bundle.js',
	})
]
  • 参数说明
  • buildPath: string, 打包后的文件夹路径
  • fileFlag: string | 正则 RegExp, UI 打包的文件特征, 用于区别其它文件

例子

您可以在 autojs-typescript-template 作为参考。

Keywords

autojs

FAQs

Package last updated on 10 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts