chore: change message

dunkirk.sh ddeef53c 587b341f

verified
Changed files
+25 -28
+25 -28
vite.config.js
··· 1 1 import { defineConfig } from "vite"; 2 2 3 3 const kaplayCongrats = () => { 4 - return { 5 - name: "vite-plugin-kaplay-hello", 6 - buildEnd() { 7 - const line = 8 - "---------------------------------------------------------"; 9 - const msg = `๐Ÿฆ– Awesome pal! Send your game to us:\n\n๐Ÿ’Ž Discord: https://discord.com/invite/aQ6RuQm3TF \n๐Ÿ’– Donate to KAPLAY: https://opencollective.com/kaplay\n\ (you can disable this msg on vite.config)`; 4 + return { 5 + name: "vite-plugin-kaplay-hello", 6 + buildEnd() { 7 + const line = "---------------------------------------------------------"; 8 + const msg = `๐Ÿ’ feel free to hack on this and open a pr!`; 10 9 11 - process.stdout.write(`\n${line}\n${msg}\n${line}\n`); 12 - }, 13 - }; 10 + process.stdout.write(`\n${line}\n${msg}\n${line}\n`); 11 + }, 12 + }; 14 13 }; 15 14 16 15 export default defineConfig({ 17 - // index.html out file will start with a relative path for script 18 - base: "./", 19 - server: { 20 - port: 3001, 21 - }, 22 - build: { 23 - // disable this for low bundle sizes 24 - sourcemap: true, 25 - rollupOptions: { 26 - output: { 27 - manualChunks: { 28 - kaplay: ["kaplay"], 29 - }, 30 - }, 16 + // index.html out file will start with a relative path for script 17 + base: "./", 18 + server: { 19 + port: 3001, 20 + }, 21 + build: { 22 + // disable this for low bundle sizes 23 + sourcemap: true, 24 + rollupOptions: { 25 + output: { 26 + manualChunks: { 27 + kaplay: ["kaplay"], 31 28 }, 29 + }, 32 30 }, 33 - plugins: [ 34 - // Disable messages removing this line 35 - kaplayCongrats(), 36 - ], 37 - }); 31 + }, 32 + plugins: [kaplayCongrats()], 33 + }); 34 +