Skip to content

Commit 04065a8

Browse files
committed
Updates dependencies
1 parent aa8fbd4 commit 04065a8

File tree

6 files changed

+4982
-5479
lines changed

6 files changed

+4982
-5479
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": ["env"]
2+
"presets": ["@babel/preset-env"]
33
}

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,15 @@ npm install --save axios-middleware
1616
## How to use
1717

1818
Explore [**the documentation**](https://emileber.github.io/axios-middleware/) or the `docs/` directory.
19+
20+
## Contributing
21+
22+
23+
24+
### Updating the documentation
25+
26+
The documentation is only static files in the `docs` directory. It uses [docsify](https://docsify.js.org/#/).
27+
28+
```
29+
npm run docs
30+
```

build/build.main.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@ function buildEntry({ input, output }) {
3131
const isProd = /min\.js$/.test(output.file);
3232
return rollup.rollup(input)
3333
.then(bundle => bundle.generate(output))
34-
.then(({ code }) => {
34+
.then(({ output: codeOutput }) => Promise.all(codeOutput.map((chunk) => {
35+
if (chunk.isAsset) {
36+
throw Error('Asset found in generated output.');
37+
}
3538
if (isProd) {
36-
const minified = (output.banner ? output.banner + '\n' : '') + uglify.minify(code, {
39+
const minified = (output.banner ? output.banner + '\n' : '') + uglify.minify(chunk.code, {
3740
output: { ascii_only: true },
3841
}).code;
3942
return write(output.file, minified, true);
4043
}
41-
return write(output.file, code);
42-
});
44+
return write(output.file, chunk.code);
45+
})));
4346
}
4447

4548
function write(dest, code, zip) {

build/configs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ const pkg = require('../package.json');
55

66
const version = process.env.VERSION || pkg.version;
77
const name = 'axios-middleware';
8-
const banner =
9-
`/**
8+
const banner = `/**
109
* ${name} v${version}
1110
* (c) ${new Date().getFullYear()} Émile Bergeron
1211
* @license MIT

0 commit comments

Comments
 (0)