@architect/plugin-bundles

3.2.0 • Public • Published

plugin-bundles

Plugin for exposing bundled modules to the browser from your Architect project.

Install

npm i @architect/plugin-bundles

Usage

In your app.arc file:

@app
bndl-mock

@http
get /yolo

# Define you plugins pragma
@plugins
# Add the plugin bundles module
architect/plugin-bundles

# Define the bundles pragma
@bundles
# Specify which modules to bundle based off of file path.
# . Hint: You can include organization node modules by quoting the path
# . i.e. hashids "@begin/hashids"
yolo /lib/yolo.mjs

Bundles are will now be available at /_static/bundles/yolo.mjs

🙌 Turn fingerprinting on and use static.json to retrieve the fingerprinted file name.

Package Sidebar

Install

npm i @architect/plugin-bundles

Weekly Downloads

82

Version

3.2.0

License

Apache-2.0

Unpacked Size

17.5 kB

Total Files

4

Last publish

Collaborators

  • brianleroux
  • dam
  • kborchers
  • ryanblock
  • architectci
  • filmaj