az-esbuild
v1.2.7
Published
A package for packaging my own npm packages
Downloads
3
Readme
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