@yuuza/webbuild
v1.0.8
Published
A build toolchain for Web frontend projects, based on Rollup and TypeScript.
Downloads
6
Readme
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