1.0.11 • Published 4 years ago

easyassetbundler v1.0.11

Weekly downloads
18
License
GPL-3
Repository
github
Last release
4 years ago

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": [
                "angular/angular.min.js",
                "@uirouter/angularjs/release/angular-ui-router.min.js",
                "angular-material/angular-material.min.js"
            ], 
            "output": "./public/js/vendor.js"
        },{
            "basePath": "./assets/js/",
            "files": [
                "app.js",
                "controllers/MainController.js",
                "services/API.js"
            ], 
            "output": "./public/js/scripts.js"
        },{
            "basePath": "./assets/css/",
            "files": [
                "style.css"
            ], 
            "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"
}
1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago