build: Configure Vite to serve on localhost:5173
This commit is contained in:
1 parent
18756345dc
commit
57e8fc8659
2 files changed
+9
-12
No files matched your search
+4
-2
@@ -4,13 +4,15 @@
|
||||
"description": "A simple web application for sharing desk moments and finds.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "postcss src/styles.css -o dist/output.css && tailwindcss -i src/styles.css -o dist/output.css --watch"
|
||||
"dev": "vite",
|
||||
"build": "vite build"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"autoprefixer": "^10.4.13",
|
||||
"postcss": "^8.4.19",
|
||||
"tailwindcss": "^3.2.4"
|
||||
"tailwindcss": "^3.2.4",
|
||||
"vite": "^4.0.0"
|
||||
}
|
||||
}
|
||||
+5
-10
@@ -1,13 +1,8 @@
|
||||
import { resolve } from 'path'
|
||||
import { defineConfig } from 'vite'
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: resolve(__dirname, 'index.html'),
|
||||
login: resolve(__dirname, 'login.html'),
|
||||
server: {
|
||||
port: 5173,
|
||||
host: 'localhost',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
});
|
||||
Reference in new issue
Block a user