DEWP docs and implementation mismatch/confusion in regards of assets file name #49872
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Tool] Dependency Extraction Webpack Plugin
/packages/dependency-extraction-webpack-plugin
[Type] Developer Documentation
Documentation for developers
Description
The Dependency Extraction Webpack Plugin docs states:
Therefore, when I have
entry: { 'analytics': '…' }
, I'd expect the assets file name to beanalytics.asset.php
.However, it's effectively different, as per implmentation it takes explicitly output's file name (
assetFilename = compilation.getPath( outputFilename
). Which can be completely different.Step-by-step reproduction instructions
output/bunny-plugin-entrypoint.min.asset.php
notoutput/entrypoint.asset.php
.So I'd rather describe it as
output/filename.asset.php
Screenshots, screen recording, code snippet
No response
Environment info
n/a - I'm using only
@wordpress/scripts
and@wordpress/dependency-extraction-webpack-plugin
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: