Skip to content

V2 -- Add static directory to build step #54

Description

@sthzg

Originates from: react-webpack-generators/generator-react-webpack#270

  • add directory src/static
  • provide README in src/static
  • update copy run script to recursively copy the directory to dist/static
  • refactor favicon to be copied via the static dir
  • reference favicon from new location in index.html

Note: in further iterations the build step could be improved by #49, which will allow us to build dynamic/configurable paths to the static/asset/... directories (e.g. when users build apps to be hosted on sub-directories, where src="/static/foo.jpg" would fail).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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