forked from Flowpack/Flowpack.DecoupledContentStore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
19 lines (18 loc) · 601 Bytes
/
build.js
File metadata and controls
19 lines (18 loc) · 601 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const esbuild = require("esbuild");
const tailwindcss = require("tailwindcss");
const autoprefixer = require("autoprefixer");
const postCssPlugin = require("esbuild-plugin-postcss2").default;
const watchMode = Boolean(process.env.DEV);
esbuild
.build({
entryPoints: ["Resources/Private/Js/index.js"],
bundle: true,
outfile: "Resources/Public/BackendCompiled/out.js",
watch: watchMode,
plugins: [
postCssPlugin({
plugins: [tailwindcss, autoprefixer],
}),
],
})
.catch((e) => console.error(e.message));