Category "vite"

Nuxt3 Vite server port

I need to config server port for Nuxt3. I try to do it so: nuxt.config.ts import { defineNuxtConfig } from 'nuxt3' export default defineNuxtConfig( vite: {

Enable sourcemaps in Vue-Vite

Is it possible to enable sourcemaps in Vue-Vite in production environment? I would like to use it for Bugsnag. Can't find anything about it in the docs. In dev

Vite support for decorators

My code has some .js and .jsx files that use Mobx decorators. I tried adding the babel plugin, but it seems that it's being ignored. My vite config is import {

How to load environment variables from .env file using Vite

I want to load environment variables from the .env file using Vite I used the import.meta.env object as mentioned in Docs .env file: TEST_VAR=123F when trying

How to config Vite build output that can run with <script type="text/javascript"></script>

How can I config Vite build to output with script type="text/javascript" I'm using Vite 2.7.2, when finished building the code in HTML output the script tag as

How to load a Font from node_modules with Vite?

I'm trying to load a company font from a node_modules folder which only includes fonts and icons, it was working locally. At first, I thought it was because Vit

I can't import qs in vite

I use vite, ts and vue3. Now I want to use qs.stringfy() to build a url's query, but it panic. I use yarn add @types/qs to add qs. My code like this import

Vuejs3, Vite - How to run Production Build

I'm trying to run a simple vue.js app. My setup is a vue.js 3 app with vite, built according to the tutorial on the official website. (https://vitejs.dev/guide/

"TypeError: Failed to fetch dynamically imported module" on Vue/Vite vanilla setup

We have a vanilla Vue/Vite setup and I'm receiving TypeError: Failed to fetch dynamically imported module on sentry logs. It seems like the errors are correlate

Redirection by Vite like proxy or external 301 redirect

how i can set redirect by pattern by Vite? Example site up on http://localhost:3000/ I request image like this http://localhost:3000/2a84a6ddfd2c.png or http:

How to generate a build that exports each file type to its own folder? [duplicate]

I'm using Vite. How to generate a build that exports each file type to its own folder? I need an output similar to this: /dist /styles/*.c

Web3js fails to import in Vue3 composition api project

I've created a brand new project with npm init vite bar -- --template vue. I've done an npm install web3 and I can see my package-lock.json includes this packag

vite.config.js rollupOptions leads to "Unexpected token" error during build

I am currently trying to switch my laravel project from laravel-mix to something like Vitejs. I followed the tutorial available here: https://owenconti.com/post

How to insert git info in environment variables using Vite?

How to get information from git about current branch, commit date and other when using Vite bundler?

How to debug Vue 3 Vite while on lan --host

How can I debug while using --host option on Vue 3 Vite so I can debug my phone instance for example. At the moment Im using visual studio code plugin "Vite" la

Scss not loaded with Vite

The build with Vite and Vue works like a charm (so ist the path correct). However, it does not with storybook. Here my config: vite.config.js import { defineCon

How to use sass global variables from other components in vite/vue3

I want to use and change global variables from other components, my files structure looks like this... enter image description here I have my variables in globa

Watch Vue 3 global variable for changes

I set a provider in my main.ts file: app.provide('currentPage','test1') And then inject it in a component Home.vue: inject: ['currentPage'], I then can update i

How can I get live-reload on a local npm package in a monorepo?

I'm setting up a monorepo workspace for a Vue 3 (vite + ts), cloud functions, & shared-lib (shared functions and ts interfaces etc.). I can get the import o

Vite Server is running but not working on localhost

Vite + Reactjs server is running but I am getting "This localhost page can’t be found No webpage was found for the web address: https://localhost:4200/" o