import { clearFolders, addDefaultIndex, client, postcssPlugin, single } from "./src/exported"; clearFolders("dist_client", "dist_nodejs"); /** * css so we dont need to wait for postcss unless we change css.. */ single( { watch: "./src_client/**/*.css" }, { color: true, define: { DEVELOPMENT: "true", }, entryPoints: ["./src_client/index.css"], outfile: "./dist_client/index.css", plugins: [postcssPlugin([require("tailwindcss")("./tailwind.config.js")])], logLevel: "error" } ); /** * client bundle */ client( { watch: "./src_client/**/*.ts" }, { color: true, define: { DEVELOPMENT: "true", }, entryPoints: ["./src_client/index.ts"], outfile: "./dist_client/index.js", plugins:[], minify: false, bundle: true, platform: "browser", sourcemap: true, logLevel: "error" } ); /** * index file for project */ addDefaultIndex({ distFolder: "dist_client", entry: "./index.js", publicFolders:[], hbr: true, devServer:true, devServerPort:80, userInjectOnHbr: 'window.dispatchEvent(new CustomEvent("SIMPLE_HTML_SAVE_STATE"));', indexTemplate: /*html*/ ` Document $bundle `, });