easy-team / easywebpack

A Simple, Powerful Webpack Front-End Development Solution
https://easyjs.cn/easywebpack
MIT License
481 stars 51 forks source link

use easywebpack cli to initialize a application which use egg@2.19.1 , start node server by npm run dev, all static resouces 404 #80

Open xiaoyanzheng opened 4 years ago

xiaoyanzheng commented 4 years ago

A clear and concise description of what the bug is. egg 2.19.1 use easywebpack cli init application , start node server by npm run dev, all static resouces 404

Mini Showcase Repository(REQUIRED) Provide a mini GitHub repository which can reproduce the issue. Use npm init egg --type=simple bug then upload to your GitHub https://user-images.githubusercontent.com/7248432/98068835-2cc67d00-1e98-11eb-85d9-ddfb92e6b5a1.png How To Reproduce Steps to reproduce the behavior:

npm i @easy-team/easywebpack-cli -g init Egg + Vue + TypeScript Server Side Render Application (application name: demo) easy init https://user-images.githubusercontent.com/7248432/98068577-634fc800-1e97-11eb-848c-630424b36b93.png cd demo npm install npm run dev Expected behavior

all static resources requests are responded by 200 status Context Node Version: v12.6.0 Egg Version: 2.19.1 Plugin Name: Plugin Version: Platform: mac

xiaoyanzheng commented 4 years ago

downgrade egg from 2.19.1 to 2.17.0 can resolve problem,why?