1.0.8 • Published 3 years ago

@yuuza/webbuild v1.0.8

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

webbuild

A build toolchain for Web frontend projects, based on Rollup and TypeScript.

It supports TypeScript with ES modules by default.

Install

Install to the project

$ npm i @yuuza/webbuild --save-dev

Add scripts in package.json to enable npm run build

"scripts": {
    "build": "webbuild"
}

Install as global tool

$ npm i -g @yuuza/webbuild

Configure

It uses the buildconfig.js file as the configuration.

Example (also the default):

module.exports = {
    input: './main.ts',
    output: {
        file: './bundle.js',
        minify: false,
    }
};

Start build

$ npm run build

or

$ webbuild