1.1.16 • Published 1 year ago
@ruanwenfeng/aestool v1.1.16
npm
npm i @ruanwenfeng/aestool
use
// webpack config
const aesconfig = require("@ruanwenfeng/aestool/lib/aes.web.config");
{
plugins: [
...aesconfig.plugins,
],
}
import AesTool from '@ruanwenfeng/aestool';
await AesTool.init();
const aesTool = new AesTool();
for debug
// webpack config
{
plugins: [
...otherplugins,
// last config
...aesconfig.plugins,
new CopyPlugin([
{ from: "debug.aes.wasm" /* your debug aes.wasm file*/, to: "wasm/aes.wasm", force: true },
]),
],
}