-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesbuild.config.js
More file actions
44 lines (41 loc) · 922 Bytes
/
esbuild.config.js
File metadata and controls
44 lines (41 loc) · 922 Bytes
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
34
35
36
37
38
39
40
41
42
43
44
import build from "./config/esbuild.defaults.js"
// You can customize this as you wish, perhaps to add new esbuild plugins.
//
// ```
// import { copy } from 'esbuild-plugin-copy'
//
// const esbuildOptions = {
// plugins: [
// copy({
// resolveFrom: 'cwd',
// assets: {
// from: ['./node_modules/somepackage/files/*')],
// to: ['./output/_bridgetown/somepackage/files')],
// },
// verbose: false
// }),
// ]
// }
// ```
//
// You can also support custom base_path deployments via changing `publicPath`.
//
// ```
// const esbuildOptions = {
// publicPath: "/my_subfolder/_bridgetown/static",
// ...
// }
// ```
/**
* @typedef { import("esbuild").BuildOptions } BuildOptions
* @type {BuildOptions}
*/
const esbuildOptions = {
plugins: [
// add new plugins here...
],
globOptions: {
excludeFilter: /\.(dsd|lit)\.css$/
}
}
build(esbuildOptions)