forked from bump-sh/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
esbuild.config.js
46 lines (42 loc) · 1.04 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
const build = require("./config/esbuild.defaults.js")
const { plugins } = require("./config/esbuild-plugins.js")
// 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",
// ...
// }
// ```
/**
* @typedef { import("esbuild").BuildOptions } BuildOptions
* @type {BuildOptions}
*/
const esbuildOptions = {
plugins: [
...plugins,
// add new plugins here...
],
globOptions: {
excludeFilter: /\.(dsd|lit)\.css$/
}
}
build(esbuildOptions)