Code Monkey home page Code Monkey logo

lite-node-build's Introduction

lite-node-build

Minimal, easy-to-configure Node.js build configuration for bare-bones vanilla js projects.

Requires Node 14.8.0 or higher. Not for production


Start

npm run build
  1. Creates a 'dist' folder or cleans it if it already exists
  2. Minifies and copies CSS, JavaScript, and HTML files to the 'dist' folder
  3. Handles the copying of additional assets (images, fonts, etc.) to the 'dist' folder, even if they are in subfolders
  4. Logs the build time and any errors that occur during the build process

The files and directories processed by the script are easily configurable through imported utility modules.


Clean

npm run clean

Cleans the 'dist' folder.


Why use this?

  1. Simplicity: This build configuration is meant to be as simple as possible and easy to configure. Do not waste time defusing the complex bomb that is Webpack while the ideas in your head are still fresh.
  2. Lightweight: Produces a minimized build with no unnecessary bloat.
  3. Parallel processing: The build script processes files in parallel, which significantly reduces build time, and avoids the process from completely halting if an error occurs.
  4. Verbose ESlint & Stylelint config

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.