Commit 21a107e4 authored by Aral Balkan's avatar Aral Balkan
Browse files

Build and dev scripts now use Vite

parent 37092cbd
......@@ -91,7 +91,7 @@ if (fs.existsSync(distDirectoryPath)) {
console.log(' - Initial build.')
}
await exec('npx snowpack build', { env: process.env })
await exec('npx vite build', { env: process.env })
if (fs.existsSync(distGitBackupDirectoryPath)) {
// Back up the git folder so it’s not nuked by the Snowpack build.
......
......@@ -5,7 +5,7 @@
"main": "index.js",
"type": "module",
"scripts": {
"start": "snowpack dev",
"dev": "npx vite",
"build": "./build.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
......
......@@ -18,6 +18,6 @@ export default defineConfig({
https: {key, cert}
},
build: {
outDir: 'dist',
outDir: '../henry-dist',
}
})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment