You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build presets provide an easy way to define common build configurations in your `polymer.json` file. There are 2 build presets we put in `polymer.json` file in Shop:
34
+
35
+
**es5-bundled**
36
+
37
+
- js: {minify: true, compile: true}
38
+
- css: {minify: true}
39
+
- html: {minify: true}
40
+
- bundle: true
41
+
- addServiceWorker: true
42
+
- addPushManifest: true
43
+
- insertPrefetchLinks: true
44
+
45
+
**es6-unbundled**
46
+
47
+
- js: {minify: true, compile: false}
48
+
- css: {minify: true}
49
+
- html: {minify: true}
50
+
- bundle: false
51
+
- addServiceWorker: true
52
+
- addPushManifest: true
53
+
- insertPrefetchLinks: true
54
+
55
+
Run the command to build the presets:
56
+
34
57
polymer build
35
58
36
59
### Test the build
37
60
38
-
This command serves the minified version of the app in an unbundled state, as it would be served by a push-compatible server:
61
+
This command serves the `es5-bundled` build version of the app:
62
+
63
+
polymer serve build/es5-bundled
39
64
40
-
polymer serve build/unbundled
41
-
42
-
This command serves the minified version of the app generated using fragment bundling:
65
+
This command serves the `es6-unbundled` build version of the app:
0 commit comments