Skip to content

Commit

Permalink
fix: browser script not minified
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrkafuu committed Oct 31, 2022
1 parent 2c2f862 commit 553e2d3
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ npm install ffxiv-overlay-api --save
Or import the library from CDNs:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/ffxiv-overlay-api/4.6.1/overlay.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].1/lib/overlay.min.js"></script>
<script src="https://unpkg.com/[email protected].1/lib/overlay.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ffxiv-overlay-api/4.6.2/overlay.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].2/lib/overlay.min.js"></script>
<script src="https://unpkg.com/[email protected].2/lib/overlay.min.js"></script>
<script>
const overlay = new OverlayAPI();
</script>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"registry": "https://registry.npmjs.org/"
},
"name": "ffxiv-overlay-api",
"version": "4.6.1",
"version": "4.6.2",
"description": "Build your own modern FFXIV overlay with npm & TypeScript support.",
"keywords": [
"ffxiv",
Expand Down Expand Up @@ -35,6 +35,7 @@
"@dsrca/config": "^1.0.0",
"@rollup/plugin-html": "^1.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.1.0",
"@rollup/plugin-typescript": "^9.0.2",
"eslint": "^8.26.0",
"npm-run-all": "^4.1.5",
Expand Down
83 changes: 83 additions & 0 deletions pnpm-lock.yaml

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

3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { nodeResolve } = require('@rollup/plugin-node-resolve');
const typescript = require('@rollup/plugin-typescript');
const terser = require('@rollup/plugin-terser');

const name = 'OverlayAPI';
const input = './src/index.ts';
Expand Down Expand Up @@ -36,7 +37,7 @@ const cdn = {
name,
sourcemap: true,
},
plugins: [nodeResolve(), typescript()],
plugins: [nodeResolve(), typescript(), terser()],
};

module.exports = [umd, esm, cdn];

0 comments on commit 553e2d3

Please sign in to comment.