1.0.5 • Published 6 years ago
login-webpack-plugin v1.0.5
This plugin fully depends on html-webpack-Plugin
npm install --save-dev login-webpack-pluginconst 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 |