FLUJOS/VISUALIZACION/node_modules/htmlnano/test.js
2025-11-07 00:06:12 +01:00

17 lines
556 B
JavaScript
Executable file

// var fs = require('fs');
// var htmlnano = require('./index');
// var options = {
// // removeEmptyAttributes: false, // Disable the module "removeEmptyAttributes"
// // collapseWhitespace: 'conservative' // Pass options to the module "collapseWhitespace"
// };
// // var html = fs.readFileSync('./test.html', 'utf8');
// var html = `
// <script src="../ts/options.ts" />
// `;
// htmlnano.process(html, options).then(function (result) {
// // console.log(result.html);
// }).catch(function (err) {
// // console.error(err);
// });