chore: change message

dunkirk.sh ddeef53c 587b341f

verified
Changed files
+25 -28
+25 -28
vite.config.js
···
import { defineConfig } from "vite";
const kaplayCongrats = () => {
-
return {
-
name: "vite-plugin-kaplay-hello",
-
buildEnd() {
-
const line =
-
"---------------------------------------------------------";
-
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)`;
+
return {
+
name: "vite-plugin-kaplay-hello",
+
buildEnd() {
+
const line = "---------------------------------------------------------";
+
const msg = `๐Ÿ’ feel free to hack on this and open a pr!`;
-
process.stdout.write(`\n${line}\n${msg}\n${line}\n`);
-
},
-
};
+
process.stdout.write(`\n${line}\n${msg}\n${line}\n`);
+
},
+
};
};
export default defineConfig({
-
// index.html out file will start with a relative path for script
-
base: "./",
-
server: {
-
port: 3001,
-
},
-
build: {
-
// disable this for low bundle sizes
-
sourcemap: true,
-
rollupOptions: {
-
output: {
-
manualChunks: {
-
kaplay: ["kaplay"],
-
},
-
},
+
// index.html out file will start with a relative path for script
+
base: "./",
+
server: {
+
port: 3001,
+
},
+
build: {
+
// disable this for low bundle sizes
+
sourcemap: true,
+
rollupOptions: {
+
output: {
+
manualChunks: {
+
kaplay: ["kaplay"],
},
+
},
},
-
plugins: [
-
// Disable messages removing this line
-
kaplayCongrats(),
-
],
-
});
+
},
+
plugins: [kaplayCongrats()],
+
});
+