Skip to content

Commit

Permalink
Minify html literals
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwroc committed Oct 25, 2020
1 parent 467e296 commit a2a57dc
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 8 deletions.
178 changes: 171 additions & 7 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@rollup/plugin-typescript": "^6.0.0",
"rollup": "^2.32.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-minify-html-literals": "^1.2.5",
"tslib": "^2.0.2",
"typescript": "^4.0.3",
"adm-zip": "^0.4.16"
Expand Down
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import typescript from '@rollup/plugin-typescript';
import resolve from '@rollup/plugin-node-resolve';
import minifyHTML from 'rollup-plugin-minify-html-literals';
import { terser } from 'rollup-plugin-terser';
import pkg from './package.json';

Expand All @@ -8,7 +9,8 @@ export default function (args) {
let targetFileName = pkg.main;

const plugins = [
resolve()
resolve(),
minifyHTML(),
];

const target = args.target ? args.target.toUpperCase() : null;
Expand Down

0 comments on commit a2a57dc

Please sign in to comment.