Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- git pair
- 클로저
- url #querystring
- NPM
- this
- 기후변화
- lightsail nodejs apache
- jest
- OOP
- TypeScript
- ESLint
- #cloudfront #s3 #html 확장자 없애기
- 객체참조 #객체
Archives
- Today
- Total
Hello World...
nuxt2 build 시 index.html -> main.html 로 변경되게 하기 본문
nuxt2 빌드시, dist 폴더에 index.html 대신 main.html 이 생성되도록 하고 싶었다.(이름만 변경)
이름만 변경되는 것은 아니고 main.html 이 생성되는 방식으로 해결할 수 있었다.
nuxt.config.js 에 generate 속성을 추가하면 된다.
...,
generate: {
fallback: 'main.html'
},
...
https://github.com/nuxt/nuxt.js/issues/4686
https://github.com/nuxt/nuxt.js/issues/4686#issuecomment-452597580
how can i customize index file name · Issue #4686 · nuxt/nuxt.js
how can i customize index file name as index.html instead of 200.html? can someone have a good idea? This question is available on Nuxt community (#c8404)
github.com
Comments