webpack-decrypt-loader
v1.4.1
Published
A webpack loader to decrypt your apis to keep safe
Downloads
1
Readme
Webpack-decrypt-loader
A webpack loader to decrypt your apis to keep safe
Install
npm install webpack-decrypt-loader --save-dev
Usage
// webpack.config.js
module.exports = {
//...
module: {
rules: [
{
test: /\.ts(x?)$/,
include: path.resolve(__dirname, 'src/apis/'),
use: [
{
loader: 'webpack-decrypt-loader',
options: {
secretKey: 'Your secret key',
},
},
],
},
}
}