Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F996458
esbuild.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
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
text/plain
Expires
Tue, Dec 24, 14:04 (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557267
Default Alt Text
esbuild.js (733 B)
Attached To
Mode
rREWRITE Configurable rewriter
Attached
Detach File
Event Timeline
Log In to Comment