login-webpack-plugin
v1.0.5
Published
set login info into localStorage
Downloads
7
Readme
This plugin fully depends on html-webpack-Plugin
npm install --save-dev login-webpack-plugin
const LoginWebpackPlugin = require('login-webpack-plugin');
module.exports = {
plugins: [
new LoginWebpackPlugin({
url: 'wwww.example.com/api',
json: {
password: '123',
userName: 'user',
}
})
]
}
| Name|Type|Default|Description| | ------------ | :-----------: | -----: | -----: | | url | String | None | api path | | json | Object | None | sets body to JSON representation of value | | localStorage | String | 'loginInfo' | localStorage key |