combines files into a more efficient production asset structure.

Usage no npm install needed!

<script type="module">
  import easyassetbundler from 'https://cdn.skypack.dev/easyassetbundler';


asset bundler

easy to use bundler of asset files.

Set the shared path of your files in bundle.basePath.

Define the order of builds within the bundle.files array.

Define the path to combine your files into with the bundle.output property.

This is a sample snippet which belongs in your package.json file:

"assetBundler": {
    "bundles": [
            "basePath": "./node_modules/",
            "files": [
            "output": "./public/js/vendor.js"
            "basePath": "./assets/js/",
            "files": [
            "output": "./public/js/scripts.js"
            "basePath": "./assets/css/",
            "files": [
            "output": "./public/css/style.css"

create a npm run script with the following in your package.json:

"scripts": {
    "easyassetbundler": "node node_modules/easyassetbundler/cli.js"