File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 9
9
"build" : " vite build" ,
10
10
"lint" : " eslint ." ,
11
11
"preview" : " vite preview" ,
12
- "deploy" : " gh-pages -d build "
12
+ "deploy" : " gh-pages -d dist "
13
13
},
14
14
"dependencies" : {
15
15
"react" : " ^18.3.1" ,
Original file line number Diff line number Diff line change 1
1
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' ;
8
8
import { useEffect , useState } from 'react' ;
9
9
10
10
export default function Slider ( ) {
Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react-swc'
3
3
4
4
// https://vite.dev/config/
5
5
export default defineConfig ( {
6
+ base : '/Slider-React/' ,
6
7
plugins : [ react ( ) ] ,
7
8
} )
You can’t perform that action at this time.
0 commit comments