{"library":"static-html-bundler","title":"static-html-bundler","type":"library","description":"A Node.js module that bundles and minifies CSS and JS assets referenced in HTML comment-bounded sections into single files. It reads an HTML entry point, replaces stylesheet link and script tags between user-defined start/end comment markers with a single combined and minified file per section. Version 1.0.9. No recent updates; relies on uglify-js and clean-css internally. Simpler than Webpack/Parcel but limited to comment-based bundling.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install static-html-bundler"],"cli":null},"imports":["const staticHtmlBundler = require('./static-html-bundler/bundler');","staticHtmlBundler.bundle(options);"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/mgovahi/static-html-bundler","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/static-html-bundler","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"const staticHtmlBundler = require('./node_modules/static-html-bundler/bundler');\nconst options = {\n  sourceFolder: './src/',\n  distFolder: './dist/',\n  distJsFolder: 'js/',\n  distCssFolder: 'css/',\n  inputHtml: './src/index.html',\n  outputHtml: './dist/index.html',\n  tags: [\n    { start: '<!-- css bundle start -->', end: '<!-- css bundle end -->', type: 'css', name: 'styles' },\n    { start: '<!-- js bundle start -->', end: '<!-- js bundle end -->', type: 'js', name: 'scripts' }\n  ]\n};\nstaticHtmlBundler.bundle(options);","lang":"javascript","description":"Demonstrates running static-html-bundler with common options for CSS and JS bundling via comment markers.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}