
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@webmodule/bundle
Advanced tools
Bundle and transform javascript files, stylesheets, html imports and update DOM document
npm install -g @webmodule/bundle
This saves modified html file, and styles are bundled into js file:
webmodule-bundle
--html bundles/index.html
--js /bundles/index.js
-x jquery.js -x moment.js -i index.js
--prepend '/js/custom-elements.js'
public/index.html
This saves styles separately:
webmodule-bundle
--html bundles/index.html
--css /bundles/index.css
--js /bundles/index.js
--exclude jquery.js
--prepend '/js/custom-elements.js'
public/index.html
This does not compress files, and specifies root dir
webmodule-bundle
--concatenate
--html bundles/index.html
--css /bundles/index.css
--js /bundles/index.js
--exclude jquery.js
--prepend '/js/custom-elements.js'
--root public
public/templates/index.html
A tool to bundle a bunch of files:
webmodule-bundle-all
--filter "**/excluded-*.*"
--common common.html
--suffix 1.0.0
"templates/*.html"
it bundles common files then processes all files matching pattern and put everything with suffixes in a bundles/ directory.
See webmodule-bundle-all -h for more command-line options.
Paths are relative to the input file path.
webmoduleBundle(path, opts, cb)
where path is the path of the html file to process,
and opts has these properties:
Strings are matched simply by searching a substring.
Tags without src or href attributes can be excluded or ignored by passing a dot ".", otherwise they are bundled.
Omitting js, css options skips the insertion of the corresponding tag in the html document.
If cb is omitted, returns a promise.
Returns an object with following properties:
webmodule-bundle --help
MIT, see LICENSE file.
FAQs
Bundle and transform javascript files, stylesheets, html imports and update DOM document
The npm package @webmodule/bundle receives a total of 6 weekly downloads. As such, @webmodule/bundle popularity was classified as not popular.
We found that @webmodule/bundle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.