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> <noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div> <div id="root"></div>
<script src="/src/index.jsx" type="module"></script> <script src="/pages/index.jsx" type="module"></script>
</body> </body>
</html> </html>

View File

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

View File

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