-
Notifications
You must be signed in to change notification settings - Fork 0
/
esbuild.config.js
33 lines (30 loc) · 923 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
33
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 = { publicPath: "/my_subfolder/_bridgetown/static" }
// ```
const esbuildOptions = {
target: "es2017",
};
build(outputFolder, esbuildOptions);