-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
esbuild.config.js
31 lines (28 loc) · 897 Bytes
/
esbuild.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const build = require("./config/esbuild.defaults.js")
// Update this if you need to configure a destination folder other than `output`
const outputFolder = "build"
// You can customize this as you wish, perhaps to add new esbuild plugins.
//
// ```
// const path = require("path")
// const esbuildCopy = require('esbuild-plugin-copy').default
// const esbuildOptions = {
// plugins: [
// esbuildCopy({
// assets: {
// from: [path.resolve(__dirname, 'node_modules/somepackage/files/*')],
// to: [path.resolve(__dirname, 'output/_bridgetown/somepackage/files')],
// },
// verbose: false
// }),
// ]
// }
// ```
//
// You can also support custom base_path deployments via changing `publicPath`.
//
// ```
// const esbuildOptions = { publicPath: "/my_subfolder/_bridgetown/static" }
// ```
const esbuildOptions = {}
build(outputFolder, esbuildOptions)