Formatting

This commit is contained in:
Keavon Chambers 2023-03-03 21:27:47 -08:00
parent 9b0a5d7d83
commit e6a97fae63
3 changed files with 17 additions and 15 deletions

View file

@ -12,6 +12,7 @@
"build-wasm": "wasm-pack build ./wasm --release",
"watch:wasm": "cargo watch --postpone -C wasm -s \"wasm-pack build . --dev\"",
"preview": "vite preview",
"--------------------": "",
"print-building-help": "echo 'Graphite project failed to build. Did you remember to `npm install` the dependencies in `/frontend`?'",
"print-linting-help": "echo 'Graphite project had lint errors, or may have otherwise failed. In the latter case, did you remember to `npm install` the dependencies in `/frontend`?'"
},

View file

@ -1,18 +1,19 @@
// vite.config.js
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import wasm from "vite-plugin-wasm";
import toplevelawait from "vite-plugin-top-level-await"
import license from "rollup-plugin-license"
import * as path from "path";
import svgLoader from 'vite-svg-loader'
import vue from "@vitejs/plugin-vue";
import license from "rollup-plugin-license";
import { defineConfig } from "vite";
import toplevelawait from "vite-plugin-top-level-await";
import wasm from "vite-plugin-wasm";
import svgLoader from "vite-svg-loader";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), toplevelawait(), wasm() , svgLoader()],
resolve: {
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
plugins: [vue(), toplevelawait(), wasm(), svgLoader()],
resolve: {
extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"],
alias: {
"@": path.resolve(__dirname, "./src"),
},
@ -28,7 +29,7 @@ export default defineConfig({
],
},
},
server: {
port: 8080
}
})
server: {
port: 8080,
},
});