Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix example & spell check in content #1019

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions packages/lit-dev-content/site/docs/tools/production.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {
// Resolve bare module specifiers to relative paths
resolve(),
// Minify HTML template literals
minifyHTML(),
minifyHTML.default(),
// Minify JS
terser({
ecma: 2020,
Expand Down Expand Up @@ -140,7 +140,9 @@ import {copy} from '@web/rollup-plugin-copy';
import resolve from '@rollup/plugin-node-resolve';
import {getBabelOutputPlugin} from '@rollup/plugin-babel';
import {terser} from 'rollup-plugin-terser';
import minifyHTML from 'rollup-plugin-minify-html-literals';
import

from 'rollup-plugin-minify-html-literals';
import summary from 'rollup-plugin-summary';

// Configure an instance of @web/rollup-plugin-html
Expand All @@ -158,13 +160,13 @@ export default {
// Resolve bare module specifiers to relative paths
resolve(),
// Minify HTML template literals
minifyHTML(),
minifyHTML.default(),
// Minify JS
terser({
module: true,
warnings: true,
}),
// Inject polyfills into HTML (core-js, regnerator-runtime, webcoponents,
// Inject polyfills into HTML (core-js, regenerator-runtime, web-components,
// lit/polyfill-support) and dynamically loads modern vs. legacy builds
polyfillsLoader({
modernOutput: {
Expand All @@ -184,7 +186,7 @@ export default {
fetch: true,
webcomponents: true,
// Custom configuration for loading Lit's polyfill-support module,
// required for interfacing with the webcomponents polyfills
// required for interfacing with the web-components polyfills
custom: [
{
name: 'lit-polyfill-support',
Expand Down