diff --git a/package.json b/package.json index 2524aa553..3e7553152 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "eleventy": "eleventy", "html": "html-minifier-terser --config-file=.html-minifier.json --input-dir=dist --output-dir=dist --file-ext=html", "css": "postcss src/_css/main.css --output dist/_css/main.css && postcss src/_css/feature-support.css --output dist/_css/feature-support.css", - "js": "shx mkdir -p dist/_js && terser src/_js/main.js -cm -o dist/_js/main.js", + "js": "shx mkdir -p dist/_js && terser src/_js/main.mjs -cm --module -o dist/_js/main.mjs && terser src/_js/legacy.js -cm -o dist/_js/legacy.js", "json": "json-minify src/.webmanifest > dist/.webmanifest", "xml": "minify-xml --in-place dist/sitemap.xml && minify-xml --in-place dist/blog.atom && minify-xml --in-place dist/features.atom", "sw": "workbox injectManifest workbox-config.js && terser dist/sw.js -cm -o dist/sw.js", diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk index 375f0aa67..a5a80eb27 100644 --- a/src/_includes/layouts/base.njk +++ b/src/_includes/layouts/base.njk @@ -53,6 +53,8 @@
Except as otherwise noted, any code samples from the V8 project are licensed under V8’s BSD-style license. Other content on this page is licensed under the Creative Commons Attribution 3.0 License. For details, see our site policies.
- + + +