Skip to content

Commit

Permalink
Don't remove attribute quotes by default. Fixes #12.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Evans committed Jun 9, 2020
1 parent 33866eb commit 5705f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/strategy.ts
Expand Up @@ -76,7 +76,7 @@ export const defaultMinifyOptions: HTMLOptions = {
minifyCSS: defaultMinifyCSSOptions,
minifyJS: true,
processConditionalComments: true,
removeAttributeQuotes: true,
removeAttributeQuotes: false,
removeComments: true,
removeEmptyAttributes: true,
removeScriptTypeAttributes: true,
Expand Down
4 changes: 2 additions & 2 deletions test/minifyHTMLLiterals.spec.ts
Expand Up @@ -93,7 +93,7 @@ describe('minifyHTMLLiterals()', () => {

const SOURCE_MIN = `
function render(title, items, styles) {
return html\`<style>\${styles}</style><h1 class=heading>\${title}</h1><ul>\${items.map(item => {
return html\`<style>\${styles}</style><h1 class="heading">\${title}</h1><ul>\${items.map(item => {
return getHTML()\`<li>\${item}</li>\`;
})}</ul>\`;
}
Expand Down Expand Up @@ -134,7 +134,7 @@ describe('minifyHTMLLiterals()', () => {

const SVG_SOURCE_MIN = `
function taggedSVGMinify() {
return svg\`<svg xmlns=http://www.w3.org/2000/svg height=24 viewBox="0 0 24 24" width=24><path d="M6 19h12v2H6z"/><path d="M0 0h24v24H0V0z" fill=none /></svg>\`;
return svg\`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M6 19h12v2H6z"/><path d="M0 0h24v24H0V0z" fill="none"/></svg>\`;
}
`;

Expand Down

0 comments on commit 5705f34

Please sign in to comment.