module.exports = {
enable: true,
mode: "random", // random | simplify | simplify-seedable
refreshClassConversionJson: false, // recommended set to true if not in production
allowExtensions: [".jsx", ".tsx", ".js", ".ts", ".html", ".rsc"],
buildFolderPath: "public/build/assets", // Build folder of your project.
};
Type
Checklist
Environment
Describe the bug Failed to capture the correct content if there is no "{" and "}" wrapped outside the
.jsx
obfuscation marker.To Reproduce Steps to reproduce the behavior:
Expected behavior Obfuscate all classNames.
Screenshots![image](https://github.com/soranoo/next-css-obfuscator/assets/46896789/bafc584d-1f7d-4882-aba9-db9d0157332a)
Code
Config
Solution
enableJsAst: true
in the config.