Skip to content

Commit f2588c5

Browse files
committed
Minified
1 parent 9880e9b commit f2588c5

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

packages/test-app/polymer.json

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,33 @@
1818
"entrypoint": "index.html",
1919
"shell": "src/test-app-app/test-app-app.js",
2020
"builds": [
21-
{"name": "modern", "browserCapabilities": ["es2015", "push"]},
22-
{"name": "fallback"}
21+
{ "name": "modern",
22+
"browserCapabilities": ["es2015", "push"],
23+
"js": {
24+
"minify": true
25+
},
26+
"css": {
27+
"minify": true
28+
},
29+
"html": {
30+
"minify": true
31+
},
32+
"bundle": true,
33+
"addServiceWorker": true
34+
},
35+
{
36+
"name": "fallback",
37+
"js": {
38+
"minify": true
39+
},
40+
"css": {
41+
"minify": true
42+
},
43+
"html": {
44+
"minify": true
45+
},
46+
"bundle": false,
47+
"addServiceWorker": false
48+
}
2349
]
2450
}

packages/test-app/src/test-app-app/test-app-app.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class TestAppApp extends PolymerElement {
5454
<app-header fixed condenses effects="waterfall" slot="header">
5555
<app-toolbar>
5656
<paper-icon-button icon="svg-sample-icons:info" on-tap="_openInfo"></paper-icon-button>
57-
5857
<div main-title>Token Explorer</div>
5958
<paper-icon-button icon="svg-sample-icons:cart" on-tap="_openBuy"></paper-icon-button>
6059
<iron-dropdown id="buy" horizontal-align="right" vertical-align="top">
@@ -68,7 +67,7 @@ class TestAppApp extends PolymerElement {
6867
<iron-dropdown id="settings" horizontal-align="right" vertical-align="top">
6968
<div slot="dropdown-content">
7069
<h2>Settings</h2>
71-
<paper-checkbox>Send Telemetry Data</paper-checkbox>
70+
<paper-checkbox checked="{{sendTelemetry}}">Send Telemetry Data</paper-checkbox>
7271
<div>Uses Google Analytics</div>
7372
</div>
7473
</iron-dropdown>
@@ -165,7 +164,7 @@ class TestAppApp extends PolymerElement {
165164
});
166165
let dataset = me.datasets[me.dataset];
167166
let duration = me.durations[me.duration];
168-
console.log
167+
169168
var data = {
170169
labels: labels,
171170
datasets: [
@@ -199,6 +198,10 @@ class TestAppApp extends PolymerElement {
199198
}
200199
static get properties() {
201200
return {
201+
sendTelemetry: {
202+
type: Boolean,
203+
value: false
204+
},
202205
datasetsIcons: {
203206
type: Array,
204207
value: [

0 commit comments

Comments
 (0)