From 5a7e01553e900adb07d6e050e9baebefc82e8e91 Mon Sep 17 00:00:00 2001 From: arthurfiorette Date: Thu, 13 Jan 2022 20:14:12 -0300 Subject: [PATCH] build: remove .min at umd bundles --- build/check.sh | 4 ++-- build/webpack.config.js | 4 ++-- docs/pages/compiled-code.md | 4 ++-- package.json | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/build/check.sh b/build/check.sh index cb58fc54..733618d8 100644 --- a/build/check.sh +++ b/build/check.sh @@ -5,8 +5,8 @@ echo "\nStarting checking...\n" -es-check es5 umd/es5.min.js & -es-check es6 umd/es6.min.js & +es-check es5 umd/es5.js & +es-check es6 umd/es6.js & wait diff --git a/build/webpack.config.js b/build/webpack.config.js index b938ddc1..5cea0be9 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -63,11 +63,11 @@ const config = ({ output, esTarget }) => ({ module.exports = [ config({ esTarget: 'es2015', //es6 - output: 'umd/es6.min' + output: 'umd/es6' }), config({ esTarget: 'es5', - output: 'umd/es5.min' + output: 'umd/es5' }), config({ esTarget: 'es2017', diff --git a/docs/pages/compiled-code.md b/docs/pages/compiled-code.md index 7637c376..28dce609 100644 --- a/docs/pages/compiled-code.md +++ b/docs/pages/compiled-code.md @@ -17,8 +17,8 @@ The UMD code is compiled with `webpack` to support `>= ES5`. See the [build config](build/webpack.config.js). You can import these files anywhere (Browser, CommonsJS, ESM and more) -- `axios-cache-interceptor/umd/es6.min.js`: Production file for ES6+ -- `axios-cache-interceptor/umd/es5.min.js`: Production file for ES5+ +- `axios-cache-interceptor/umd/es6.js`: Production file for ES6+ +- `axios-cache-interceptor/umd/es5.js`: Production file for ES5+ - `axios-cache-interceptor/umd/index.js`: Production file for ES2017+ ```html diff --git a/package.json b/package.json index 92d329a0..8502f701 100644 --- a/package.json +++ b/package.json @@ -8,11 +8,11 @@ "exports": { "import": "./esm/index.js", "require": "./cjs/index.js", - "default": "./umd/es6.min.js" + "default": "./umd/es6.js" }, - "browser": "./umd/es6.min.js", - "jsdelivr": "./umd/es6.min.js", - "unpkg": "./umd/es6.min.js", + "browser": "./umd/es6.js", + "jsdelivr": "./umd/es6.js", + "unpkg": "./umd/es6.js", "runkitExampleFilename": "./examples/runkit.js", "scripts": { "build": "sh build/build.sh",