@@ -16,7 +16,6 @@ const markdown = require('metalsmith-markdown')
1616const prism = require ( 'metalsmith-prism' )
1717const permalinks = require ( 'metalsmith-permalinks' )
1818const pagination = require ( 'metalsmith-yearly-pagination' )
19- const htmlMinifier = require ( 'metalsmith-html-minifier' )
2019const defaultsDeep = require ( 'lodash.defaultsdeep' )
2120const autoprefixer = require ( 'autoprefixer' )
2221const marked = require ( 'marked' )
@@ -47,33 +46,6 @@ const markedOptions = {
4746 renderer
4847}
4948
50- const htmlMinifierOpts = {
51- collapseBooleanAttributes : true ,
52- collapseWhitespace : true ,
53- conservativeCollapse : true , // This is needed as things are now
54- decodeEntities : true ,
55- minifyCSS : {
56- level : {
57- 1 : {
58- specialComments : 0
59- }
60- }
61- } ,
62- minifyJS : false , // we don't have a lot inline JS and this slows down things
63- minifyURLs : false ,
64- processConditionalComments : true ,
65- removeAttributeQuotes : true ,
66- removeComments : true ,
67- removeOptionalAttributes : true ,
68- removeOptionalTags : true ,
69- removeRedundantAttributes : true ,
70- removeScriptTypeAttributes : true ,
71- removeStyleLinkTypeAttributes : true ,
72- removeTagWhitespace : false ,
73- sortAttributes : true ,
74- sortClassName : true
75- }
76-
7749// This function imports a given language file and uses the default language set
7850// in DEFAULT_LANG as a fallback to prevent any strings that aren't filled out
7951// from appearing as blank.
@@ -207,8 +179,6 @@ function buildLocale (source, locale, opts) {
207179 pattern : / \. j s $ /
208180 } ) )
209181 . use ( layouts ( ) )
210- // Use the default options
211- . use ( process . env . NODE_ENV !== 'development' ? htmlMinifier ( { minifierOptions : htmlMinifierOpts } ) : '' )
212182 // Pipes the generated files into their respective subdirectory in the build
213183 // directory.
214184 . destination ( path . join ( __dirname , 'build' , locale ) )
0 commit comments