File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ WORKDIR /home/user/app
6
6
7
7
# Pre-install common dependencies to speed up runtime
8
8
RUN npm init -y
9
- RUN npm install --legacy-peer-deps vue@3
10
- RUN npm install --legacy-peer-deps --save-dev tailwindcss@3 autoprefixer@10 postcss@8 @vue/compiler-sfc@3 vite @vitejs/plugin-vue
9
+ RUN npm install -g typescript vue@3
10
+ RUN npm install --legacy-peer-deps --save-dev tailwindcss@3 autoprefixer@10 postcss@8 @vue/compiler-sfc@3 vite @vitejs/plugin-vue @vitejs/plugin-react-swc
11
11
12
12
# Set up basic Vite configuration for Vue
13
13
RUN npx tailwindcss init
14
- COPY nuxt.config.ts /home/user/app/
14
+ COPY nuxt.config.ts /home/user/app/
15
+ COPY vite.config.ts /home/user/app/
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react-swc'
3
+
4
+ // https://vite.dev/config/
5
+ export default defineConfig ( {
6
+ plugins : [ react ( ) ] ,
7
+ server : {
8
+ host : true ,
9
+ allowedHosts : true
10
+ }
11
+ } ) ;
You can’t perform that action at this time.
0 commit comments