GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Voliware/node-build: JS, CSS, and HTML minfier and injector for building webpages

This repository was archived by the owner on Jul 8, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
lib
lib
 
 
test
test
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

node-build

JS and CSS minfier for @voliware/node-based projects. Uses clean-css and uglify-es.

Install

Install with node package manager

npm install @voliware/node-build

Include in a file

const NodeBuild = require('@voliware/node-build');

Usage

node-build automatically detects JS vs CSS.

const NodeBuild = require('@voliware/node-build');

new NodeBuild.Build({
   name: "Library",
   version: "1.2.3",
   input: ["./src/js/library.js", "./src/js/plugins.js"],
   output: "./dist/library.min.js"
}).run();

Mulitple Config Example

Minify a JS/CSS library, which has a base file and optional plugin files, to produce multiple builds.

const NodeBuild = require('@voliware/node-build');
const version = "1.0.3";

// library base
const jsBaseInput = './src/js/library.js';
const jsBaseOutput = './dist/library.min.js';
const jsBaseConfig = {
    name: "Library JS [base]",
    version: version,
    input: jsBaseInput,
    output: jsBaseOutput
};

// library bundle
const jsBundleInput = [
    './src/js/library.js',
    './src/js/plugin1.js',
    './src/js/plugin2.js'
];
const jsBundleOutput = './dist/library-bundle.min.js';
const jsBundleConfig = {
    name: "Library JS [bundle]",
    version: version,
    input: jsBundleInput,
    output: jsBundleOutput
};

// css
const cssInput = './src/css/library.css';
const cssOutput = './dist/library.min.css';
const cssConfig = {
    name: "Library CSS",
    version: version,
    input: cssInput,
    output: cssOutput
};

// build
let configs = [jsBaseConfig, jsBundleConfig, cssConfig];
new NodeBuild.Build(configs).run();

About

JS, CSS, and HTML minfier and injector for building webpages

Topics

buildconcatcss-minifierhtml-injectinjectjs-minifierminifyweb-buildwebbuild

Resources

Readme
MIT license
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.