Skip to content

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

@xiaoyanzheng

Description

@xiaoyanzheng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions