Skip to content

Commit c785370

Browse files
author
Cyril Bourdon
committed
update url
1 parent 1097e70 commit c785370

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build": "vite build",
1010
"lint": "eslint .",
1111
"preview": "vite preview",
12-
"deploy" : "gh-pages -d build"
12+
"deploy" : "gh-pages -d dist"
1313
},
1414
"dependencies": {
1515
"react": "^18.3.1",

src/components/slider/Slider.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import './slider.css';
2-
import chevronLeft from '../../image/chevron-left.svg';
3-
import chevronRight from '../../image/chevron-right.svg';
4-
import image1 from '../../image/img1.jpg';
5-
import image2 from '../../image/img2.jpg';
6-
import image3 from '../../image/img3.jpg';
7-
import image4 from '../../image/img4.jpg';
2+
import chevronLeft from '/src/image/chevron-left.svg';
3+
import chevronRight from '/src/image/chevron-right.svg';
4+
import image1 from '/src/image/img1.jpg';
5+
import image2 from '/src/image/img2.jpg';
6+
import image3 from '/src/image/img3.jpg';
7+
import image4 from '/src/image/img4.jpg';
88
import { useEffect, useState } from 'react';
99

1010
export default function Slider() {

vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react-swc'
33

44
// https://vite.dev/config/
55
export default defineConfig({
6+
base: '/Slider-React/',
67
plugins: [react()],
78
})

0 commit comments

Comments
 (0)