YDJ-FE / ts-react-vite_or_webpack

a starter-template with typescript, react, mobx and vite/webpack...
https://starter.jackple.com/
MIT License
362 stars 116 forks source link

build以后index.html并没有存在于dist文件夹 #3

Closed ZhaoTim closed 6 years ago

ZhaoTim commented 6 years ago

为什么dist没有index.html啊?

jackple commented 6 years ago

@ZhaoTim 刚刚改了一下webpack配置的结构, 顺便把你这个问题也改了, 因为脚手架也是你说的这么做的, 已通过本地nginx测试

server {
        listen       9993;
        server_name  localhost:9993;

        location / {
              root   ~/Documents/react/ts-react-webpack4/dist/qa/;
              index  index.html index.htm;
        }
  }