-
Notifications
You must be signed in to change notification settings - Fork 0
/
esbuild.config.js
32 lines (28 loc) · 901 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
32
const build = require("./config/esbuild.defaults.js")
// Update this if you need to configure a destination folder other than `output`
const outputFolder = "output"
// 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 = {}
const esbuildOptions = { publicPath: "/rails-changelog/_bridgetown/static" }
build(outputFolder, esbuildOptions)