Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
}
let userConfig = await loadConfig(
options.inputFS,
path.join(options.rootDir, 'index.html'),
['.htmlnanorc', '.htmlnanorc.js'],
);
const htmlNanoConfig = {
minifyJs: false,
...userConfig?.config,
};
return {
contents: (await posthtml([htmlnano(htmlNanoConfig)]).process(contents))
.html,
};
},
});