Skip to content

Import all files in folder #705

Closed
Closed
@emmanuelmillionaer

Description

@emmanuelmillionaer

Hi, thanks for this great gem: 💯

Instead of writing e.g. in "javascript/packs/application.js":

// images
import '../images/static/user.jpg'
import '../images/static/user.svg'
import '../images/static/team.jpg'
import '../images/static/car.jpg'
import '../images/static/yacht.jpg'
import '../images/static/plane.png'
import '../images/static/food.svg'
....

What's the best option to require all files in the images/static folder? Thanks 🙂

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