jscrambler-loader
Add obfuscation to your build process with webpack and jscrambler-loader.
How to Use
Setup your .jscramblerrc config file
You may put your config file in one of these directories.
Here's an example of what your .jscramblerrc
file should look like:
{
"keys": {
"accessKey": "XXXXXX",
"secretKey": "XXXXXX"
},
"params": {
"self_defending": "%DEFAULT%"
}
}
Replace the XXXXXX
fields with your account API Tokens of course. :)
Webpack Config
This is a simple example of how to use jscrambler-loader
with webpack.
Example:
module.exports = {
entry: './index.js',
output: {
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'jscrambler-loader'
}
]
}
};