fix: setups

This commit is contained in:
Reinaldy Rafli 2021-07-06 01:40:33 +07:00
parent d3130365af
commit 1ee4df3a3d
3 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,6 @@
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="/src/index.jsx" type="module"></script>
<script src="/pages/index.jsx" type="module"></script>
</body>
</html>

View File

@ -4,8 +4,8 @@
"description": "Website for code.reinaldyrafli.com",
"main": "index.js",
"scripts": {
"dev": "nuxt",
"generate": "nuxt generate",
"dev": "vite",
"generate": "vite build",
"lint": "eslint --fix --ext .vue,.js --ignore-path .gitignore .",
"postinstall": "husky install"
},

View File

@ -3,6 +3,7 @@ import solidPlugin from 'vite-plugin-solid';
import windiCSS from 'vite-plugin-windicss';
export default defineConfig({
publicDir: '/static',
plugins: [solidPlugin(), windiCSS()],
build: {
target: 'esnext',