Skip to content

Commit

Permalink
v1.0.3 - fixed problem with library and libraryTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawid Zbinski committed Nov 22, 2018
1 parent bddc64e commit eb8f8c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Axios plugin that makes it easy to implement automatic refresh of authorization
via axios' [interceptors](https://github.com/axios/axios#interceptors).

Size: 1.25 KiB minified, 1.02 KiB gzipped
Size: 1.27 KiB minified, 1.03 KiB gzipped


## Installation
Expand Down
2 changes: 1 addition & 1 deletion dist/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
const path = require('path');

module.exports = {
mode: 'production',
module: {
rules: [
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" }
]
},
entry: './src/index.js',
output: {
library: 'axios-auth-refresh',
libraryTarget: 'commonjs-module',
filename: 'index.min.js',
path: path.resolve(__dirname, 'dist')
}
Expand Down

0 comments on commit eb8f8c4

Please sign in to comment.