avet-build is a build tool for avet, a framework for building server-rendered React applications. This package provides webpack build configurations used in the avet ecosystem. Version 1.4.4 is the latest stable release, with no recent updates since 2018. It is part of the avet monorepo and is designed to work with Node.js >= 8. Key differentiator: integrates with avet's build pipeline, handling webpack bundling for both client and server, and supports features like babel transpilation, static file serving, and environment variable injection. Unlike generic build tools, it is tightly coupled to avet's project structure.
npm install avet-buildVerified import paths — ran on the pinned version, not inferred.
Demonstrates programmatic build using avet-build with async/await and error handling.
Set process.env.NODE_ENV = 'production' before calling build, or pass env option as 'production'.
Do not install webpack 4+ or plugins expecting webpack 4. Use only webpack 3 compatible loaders/plugins.
Consider migrating to a maintained alternative or audit dependencies with npm audit.
Use async/await or .then() instead of callback pattern.
Update Node.js to >=8 or use a compatible version.
Ensure custom config arrays (e.g., plugins, loaders) are concatenated, not overridden.
npm install webpack@3 --save-dev
Use import build from 'avet-build'
Ensure the project has the required avet structure (e.g., build/config/webpack.js)
npm install babel-loader@7 --save-dev
Pass e.g., { env: 'production' } or set process.env.NODE_ENV accordingly