v0.0.5-12
Pre-release
Pre-release
Published to npm as @eighty4/dank
npm i @eighty4/dank@next
Release notes
Added
dank previewadded to preview a production build, replacing
the--previewflag fordank serve- CSS output from
esbuild.buildwhen bundling a JS entrypoint
with CSS imports is now supported, appending the CSS bundle
with a<link rel="stylesheet">to the appropriate HTML pages dank.config.tssupports abuildTagstring expression or builder
function to create the website's build tag using expression
placeholders like{{date}}-{{gitHash}}to inject metadata
into a custom build tagdank.config.tscan now configure a callback for a completed
build by configuringafterBuildwhich will be called with
AfterBuildArgsthat includesWebsiteManifest- Builds and CICD verify Linux, MacOS and Windows compat
- Enhancing
esbuild.BuildFailuremessages using DANKWebsiteRegistry
context, so an unresolved Worker entrypoint erroring will include relevant
help text and source location
Changed
dank buildcreates a production build by default now, previous
opt-in flags for production builds--minifyand--production
are now implicit fordank buildand remain as available flags
ofdank serve- Worker constructor URLs are no longer limited to the pages directory
and can now resolve to any path within the project directory - Built workers are now deployed to
.libdirectory ofbuild/dist
Fixed
- Windows paths support
- Dev services are launched and cleaned up correctly on Windows
- Dev pages configured with
dank.config.tsdevPagesoption work with
both a string webpage mapping and aDevPageMappingconfiguration - Worker constructors with second arg options breaking swap of build output
hashed worker URL - esbuild plugin for Worker registration no longer loads node_modules sources