Skip to content

JS/CSS folders on .configureFilenames() #375

@royklutman

Description

@royklutman

Hi there,

Is there a specific reason that the JS and CSS entries are not put in a separate subdirectory like images and fonts?

webpack-encore/index.js

Lines 872 to 877 in 24a4adf

* Encore.configureFilenames({
* js: '[name].[chunkhash].js',
* css: '[name].[contenthash].css',
* images: 'images/[name].[hash:8].[ext]',
* fonts: 'fonts/[name].[hash:8].[ext]'
* });

The build directory would now look like this:

build
├── app.js
├── app.css
├── fonts
│   └── app.ttf
└── images
    └── app.jpg

But wouldn't it look way nicer to have it like this:

build
├── css
│   └── app.css
├── js
│   └── app.js
├── fonts
│   └── app.ttf
└── images
    └── app.jpg

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions