0.0.7 • Published 10 months ago

webpack-encryption-js-part v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

:cd: Installation

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

Requirements

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

:book: 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,
      }),
    ],}
    
}

:lock: License

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