Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22394571
esbuild.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
733 B
Referenced Files
None
Subscribers
None
esbuild.js
View Options
const
{
build
}
=
require
(
"esbuild"
);
const
{
sassPlugin
}
=
require
(
"esbuild-sass-plugin"
);
const
glob
=
require
(
"tiny-glob"
);
const
watch
=
process
.
argv
.
includes
(
"--watch"
);
(
async
()
=>
{
const
entryPoints
=
await
glob
(
"./src/back/**/*.ts"
);
build
({
entryPoints
,
sourcemap
:
true
,
outdir
:
"./dist/back"
,
logLevel
:
"info"
,
platform
:
"node"
,
watch
,
target
:
"node16"
,
format
:
"cjs"
,
});
build
({
entryPoints
:
[
"./src/main.scss"
],
sourcemap
:
true
,
outfile
:
"./public/dist/style.css"
,
logLevel
:
"info"
,
watch
,
plugins
:
[
sassPlugin
()],
});
build
({
entryPoints
:
[
"./src/front/index.ts"
],
sourcemap
:
true
,
outfile
:
"./public/dist/bundle.js"
,
logLevel
:
"info"
,
bundle
:
true
,
watch
,
});
})();
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Nov 27, 16:18 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1227731
Default Alt Text
esbuild.js (733 B)
Attached To
Mode
rREWRITE Configurable rewriter
Attached
Detach File
Event Timeline