-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Tooling: Generate asset file in PHP format with the list depend…
…encies (#17298) * Build Tooling: Generate asset file in PHP format with dependencies and stable version hash * Use json2php to generate PHP version of assets file Props to @aristath for sharing this npm package. * Fix linting issues reported by phpcs * Update packages/dependency-extraction-webpack-plugin/index.js Co-Authored-By: Jon Surrell <jon.surrell@automattic.com> * Fix linting issues reported by phpcs * Update packages/dependency-extraction-webpack-plugin/index.js Co-Authored-By: Jon Surrell <jon.surrell@automattic.com> * Set php as the default output format for the Webpack plugin * Docs: Update README file for Dependency Extraction Webpack Plugin * Add CHANGELOG entry and update README file * Make Dependency Extraction Webpack Plugin code exmaple less error-prone * Changelog: Tweak "breaking changes" note * Use require_once rather than include_once * Promote require rather than include for the asset file
- Loading branch information
Showing
11 changed files
with
112 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/dependency-extraction-webpack-plugin/test/fixtures/output-format-json/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import _ from 'lodash'; | ||
|
||
_.map( [], _.identity ); |
5 changes: 5 additions & 0 deletions
5
...s/dependency-extraction-webpack-plugin/test/fixtures/output-format-json/webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const DependencyExtractionWebpackPlugin = require( '../../..' ); | ||
|
||
module.exports = { | ||
plugins: [ new DependencyExtractionWebpackPlugin( { outputFormat: 'json' } ) ], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters