wrcompiler

0.2.8 • Public • Published

Web-resource-compiler

Tool for automatically compiling all your CSS and JS files using an easy to setup configuration file.

Configuration Example

wrcompiler-config.json:

{
    "./resources/css/compiled.css": [
        {
            "name": "./resources/css/src/bootstrap.min.css",
            "options": ["concatonly"]
        },
        "./resources/css/src/home-stylesheet.css"
    ],
    "./resources/js/compiled.js": [
        {
            "name": "./resources/js/src/jquery.min.js",
            "options": ["concatonly"]
        },
        "./resources/js/src/webapp.js"
    ]
}

Run

wrcompiler wrcompiler-config.json

Result

Previous example results in two files being created: ./resources/css/compiled.css and ./resources/js/compiled.js. They will both contain a combination of two other files. In order, one as-is and the other one minified (uglified).

Package Sidebar

Install

npm i wrcompiler

Weekly Downloads

15

Version

0.2.8

License

none

Last publish

Collaborators

  • andenq