Commit cba332a8 authored by Jerome Cambon's avatar Jerome Cambon
Browse files

chore(minify): A bit more minification, for smaller bundles

parent e7988e1a
......@@ -21,7 +21,7 @@
"analyze": "cem analyze --litelement",
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
"build": "tsc && npm run analyze -- --exclude dist",
"bundle": "tsc && ./node_modules/.bin/esbuild dist/src/uid-input.js --minify-syntax --minify-whitespace --bundle --outfile=dist/uid-input.bundle.min.js",
"bundle": "tsc && ./node_modules/.bin/esbuild dist/src/uid-input.js --minify --bundle --outfile=dist/uid-input.bundle.min.js",
"prepublish": "tsc && npm run analyze -- --exclude dist",
"publish": "npm run bundle && npm run gen-widget-assets && npm publish",
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
......
import {html} from 'lit';
import {expect, fixture} from '@open-wc/testing';
import '../src/uid-input.js';
//import '../uid-input.bundle.min.js';
let uidInput:any;
......
......@@ -21,7 +21,7 @@
"analyze": "cem analyze --litelement",
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
"build": "tsc && npm run analyze -- --exclude dist",
"bundle": "tsc && ./node_modules/.bin/esbuild dist/src/uid-text.js --minify-syntax --minify-whitespace --bundle --outfile=dist/uid-text.bundle.min.js",
"bundle": "tsc && ./node_modules/.bin/esbuild dist/src/uid-text.js --minify --bundle --outfile=dist/uid-text.bundle.min.js",
"prepublish": "tsc && npm run analyze -- --exclude dist",
"publish": "npm run bundle && npm run gen-widget-assets && npm publish",
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
......
import { html } from 'lit';
import { expect, fixture } from '@open-wc/testing';
import '../src/uid-text.js';
// import '../uid-text.bundle.min.js';
let uidText: any;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment