17 lines
556 B
JavaScript
Executable file
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);
|
|
// });
|