Assembler configuration
Changes
A new configuration section has been added for the Assembler in the RC file. currently unstable, so use at your own risk: breakings changes are probable
We can use it to configure two things :
- A "runner". The runner is the command that will be executed to launch your dev server and your tests.
- Several hooks, such as
onBuildStarting,onSourceFileChanged,onDevServerStarted,onBuildCompleted, which will allow you to execute code at certain times.
For example:
import { defineConfig } from '@adonisjs/core/app'
export default defineConfig({
unstable_assembler: {
runner: {
name: 'bun',
command: 'bun',
args: [],
},
onBuildStarting: [
() => import('@adonisjs/vite/build_hook')
],
},
})What's Changed
- feat: allow false value for assetsBundler by @Julien-R44 in #31
- feat: add assembler configuration (unstable) by @Julien-R44 in #32
Full Changelog: v8.0.4...v8.1.0