webpack-encryption-js-part

0.0.7 • Public • Published

💿 Installation

npm install --save-dev webpack-encryption-js-part

Requirements

  • Node.js v12.22.x, v14.17.x, v16.x and above

📖 Usage

// .vue.config.js
module.exports = {
    configureWebpack:{
    plugins: [
       new webpackEncryption({
        encryption: function base64Encode(str) {
          const buffer = Buffer.from(str, "utf-8");
          return buffer.toString("base64");
        },
        decryption: function (e) {
          return atob(e);
        },
        filename: "/base.",
        injection: "/vue.",
        // regular,
      }),
    ],}
    
}

🔒 License

See the LICENSE file for license rights and limitations (MIT).

Readme

Keywords

Package Sidebar

Install

npm i webpack-encryption-js-part

Weekly Downloads

2

Version

0.0.7

License

MIT

Unpacked Size

5.88 kB

Total Files

5

Last publish

Collaborators

  • lhp976181987