Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Actualize the template
Browse files Browse the repository at this point in the history
  • Loading branch information
heyqbnk committed Jun 25, 2024
1 parent 511d811 commit 9072863
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 20 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@babel/core": "^7.24.4",
"@babel/eslint-parser": "^7.24.1",
"@babel/preset-env": "^7.24.4",
"@vitejs/plugin-basic-ssl": "^1.1.0",
"babel-preset-solid": "^1.8.17",
"eslint": "^8.57.0",
"eslint-plugin-solid": "^0.14.0",
Expand Down
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 13 additions & 20 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,33 @@
// import { readFileSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';

import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
// import basicSsl from '@vitejs/plugin-basic-ssl';

export default defineConfig({
base: '/solidjs-js-template/',
base: '/solidjs-js-template',
plugins: [
/*
Uncomment the following line to enable solid-devtools.
For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme
*/
// Uncomment the following line to enable solid-devtools.
// For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme
// devtools(),
solidPlugin(),
// Allows using self-signed certificates to run the dev server using HTTPS.
// https://www.npmjs.com/package/@vitejs/plugin-basic-ssl
// basicSsl(),
],
// Uncomment the next lines in case, you would like to run Vite dev server using HTTPS and in case,
// you have key and certificate. You retrieve your certificate and key using mkcert.
// Learn more:
// https://docs.telegram-mini-apps.com/platform/getting-app-link#mkcert
//
// server: {
// port: 443,
// https: {
// cert: readFileSync(resolve(dirname(fileURLToPath(import.meta.url)), './tma.internal.pem')),
// key: readFileSync(resolve(dirname(fileURLToPath(import.meta.url)), './tma.internal-key.pem')),
// },
// host: 'tma.internal',
// },
build: {
target: 'esnext',
},
publicDir: './public',
server: {
// Uncomment this line if you want to expose your dev server and access it from the devices
// in the same network.
// host: true,
},
resolve: {
alias: {
'@': resolve(dirname(fileURLToPath(import.meta.url)), './src'),
}
},
publicDir: './public',
});

0 comments on commit 9072863

Please sign in to comment.