diff --git a/package.json b/package.json index 7c79c83..d19a130 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/http", - "version": "5.9.0", + "version": "5.10.0", "description": "The Athenna Http server. Built on top of fastify.", "license": "MIT", "author": "João Lenon ", diff --git a/src/vite/index.ts b/src/vite/index.ts index 0b86d1c..2e8b4cc 100644 --- a/src/vite/index.ts +++ b/src/vite/index.ts @@ -1,3 +1,5 @@ +import PluginRestart from 'vite-plugin-restart' + import { Path } from '@athenna/common' import { mergeConfig, defineConfig, type UserConfig } from 'vite' @@ -24,9 +26,11 @@ export function defineAthennaConfig(config: UserConfig) { entryFileNames: '[name].js', chunkFileNames: '[name].js', assetFileNames: '[name].[ext]' - } + }, + input: [Path.resources('css/app.scss'), Path.resources('js/app.js')] } - } + }, + plugins: [PluginRestart({ reload: [Path.views('**/*.edge')] })] } return defineConfig(mergeConfig(defaultConfig, config))