az-esbuild

1.2.7 • Public • Published

Az-esbuild

A package for packaging my own npm packages

Usage

1.Create file "build.js" or "scripts/build.js" in the project root directory.

"build.js" example:

const azBuild = require('az-esbuild')

azBuild({
  bundleName: 'Your bundleName',
  entry: './src/index.js',
  outDir: './dist',
  platforms: ['cjs', 'cjs.min', 'esm', 'esm.min', 'cdn', 'cdn.min'], // You can choose from these platforms.
})

2.Add script like this:

"build": "node ./build.js"
// or
"build": "node ./scripts/build.js"

3.Run script

npm run build
// or
yarn build

Installation

npm install az-esbuild -D
// or
yarn add az-esbuild -D

Readme

Keywords

Package Sidebar

Install

npm i az-esbuild

Weekly Downloads

0

Version

1.2.7

License

MIT

Unpacked Size

7.59 kB

Total Files

4

Last publish

Collaborators

  • azed