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.",
|
"description": "A simple web application for sharing desk moments and finds.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"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": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^10.4.13",
|
"autoprefixer": "^10.4.13",
|
||||||
"postcss": "^8.4.19",
|
"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({
|
export default defineConfig({
|
||||||
build: {
|
server: {
|
||||||
rollupOptions: {
|
port: 5173,
|
||||||
input: {
|
host: 'localhost',
|
||||||
main: resolve(__dirname, 'index.html'),
|
|
||||||
login: resolve(__dirname, 'login.html'),
|
|
||||||
},
|
},
|
||||||
},
|
});
|
||||||
},
|
|
||||||
})
|
|
||||||
Reference in new issue
Block a user