1.0.8 • Published 4 years ago
@yuuza/webbuild v1.0.8
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-devAdd scripts in package.json to enable npm run build
"scripts": {
"build": "webbuild"
}Install as global tool
$ npm i -g @yuuza/webbuildConfigure
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 buildor
$ webbuild