Skip to content

Commit

Permalink
Revert "don't minify the js in the build"
Browse files Browse the repository at this point in the history
This reverts commit 2148512.
  • Loading branch information
punxaphil committed Dec 29, 2023
1 parent 9214c4f commit db110f5
Show file tree
Hide file tree
Showing 4 changed files with 220 additions and 2 deletions.
216 changes: 216 additions & 0 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 @@ -30,6 +30,7 @@
"prettier": "^3.1.1",
"rollup": "^4.9.1",
"rollup-plugin-serve": "^2.0.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"ts-jest": "27.1.3",
"typescript": "^4.9.5"
Expand Down
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import typescript from 'rollup-plugin-typescript2';
import commonjs from '@rollup/plugin-commonjs';
import nodeResolve from '@rollup/plugin-node-resolve';
import babel from '@rollup/plugin-babel';
import { terser } from 'rollup-plugin-terser';
import serve from 'rollup-plugin-serve';
import json from '@rollup/plugin-json';

Expand All @@ -25,14 +26,15 @@ const plugins = [
babelHelpers: 'bundled',
}),
process.env.ROLLUP_WATCH && serve(serveopts),
!process.env.ROLLUP_WATCH && !process.env.DEV && terser(),
];

export default [
{
input: 'src/main.ts',
output: {
format: 'es',
sourcemap: 'inline',
sourcemap: true,
file: 'dist/custom-sonos-card.js',
},
onwarn(warning, warn) {
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@
"resolveJsonModule": true,
"experimentalDecorators": true,
"noUnusedLocals": true,
"sourceMap": false,
}
}

0 comments on commit db110f5

Please sign in to comment.