browser-sync の設定がうまくできないのでご教示ください。
下記のディレクトリ構成に browser-sync でローカルサーバを立ち上げたいのですが、index.hmtl は見れるのでが、item_list.html を見ると Cannot GET /item_list.html と表示されてしまいます。
browser-sync のオプションだと思うのですが、記述方法がわかりません。
○ディレクトリ構成
root
├─app
│ ├─index.html
│ └─item_list.html
├─html
│ ├─css
│ ├─img
│ └─js
gulpfile.coffee
○gulpfile.coffee
coffee
1gulp.task 'serve', -> 2 browserSync.init { 3 notify: false 4 server: 5 baseDir: './' 6 index: 'app/index.html' 7 } 8 9 gulp.watch('./app/*.html').on 'change', browserSync.reload 10 gulp.watch('./html/css/*.css').on 'change', browserSync.reload 11 12gulp.task 'default', ['serve']
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。