-
Notifications
You must be signed in to change notification settings - Fork 3
Webpack Helpers v1 Beta: Webpack 5, addFilter() #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
kadamwhite
wants to merge
83
commits into
main
Choose a base branch
from
v1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 16 commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
dcf2eb6
Upgrade dependencies for Webpack 5 / Node 14-16
kadamwhite 4cb27d0
Pin Chalk to v4 for node compatibility (see note)
kadamwhite f6cc586
Update choose-port to latest react-dev-utils version
kadamwhite c697a40
Use Asset Modules over url-loader and file-loader
kadamwhite b3c8d52
Switch to Webpack 5-compatible CSS optimizer plugin
kadamwhite a7fbc9b
Add source-map-loader, borrowed from latest CRA
kadamwhite 287723c
JSX pragma is now baked into WordPress babel preset
kadamwhite 069375f
Update to latest TerserPlugin config from CRA
kadamwhite d866674
Update webpack devserver config for devServer v4
kadamwhite 6898a3b
Update unit tests for asset module changes
kadamwhite 880aaef
Remove duplicative dependencies from package.json
kadamwhite d75ca23
Bump version to 1.0.0-beta.0
kadamwhite d3256e6
Replace filterLoaders system with a more generic addFilter hook system
kadamwhite 4a7a5a2
Remove support for Node 10
kadamwhite f1a4646
Set publicPath to "" to avoid issues with "auto"
kadamwhite 7755c07
Tag v1.0.0-beta.1
kadamwhite e702595
Update src/loaders.js
kadamwhite 5e4d73b
Hash filenames by default
kadamwhite a08e8a0
Limit CSS filename hash to 8 characters
kadamwhite f70f124
Fix test to expect more flexible html regex
kadamwhite b876ecb
Consolidate filters used for presets, props @tfrommen
kadamwhite 1bd56aa
Tag v1.0.0-beta.2
kadamwhite 6432ae9
Use "development-asset-manifest.json" in dev mode for clarity
kadamwhite 96cbc41
Tag v1.0.0-beta.3
kadamwhite cc71e96
Document manifest name change
kadamwhite 02d7b13
Fix tests after beta.3 change and improve manifest documentation
kadamwhite 1173405
Ignore DS_Store files
kadamwhite c30ef09
Allow loader to be skipped when rendering preset by filtering it to null
kadamwhite f5d7c10
Tag v1.0.0-beta.4
kadamwhite 1645bbc
Detect HTTPS when using the devServer.server flag (devServer.https is…
kadamwhite 9dbc218
Simplify function body of removeNullLoaders helper
kadamwhite 0e48396
Update tests to use devServer.server:"https" instead of devServer.htt…
kadamwhite 1d59d74
Tag v1.0.0-beta.5
kadamwhite ef6449f
Expose removeFilter in addition to addFilter
kadamwhite df1eef8
Tag v1.0.0-beta.6
kadamwhite 05a8fc8
Remove eslint-loader and add eslint-webpack-plugin
kadamwhite a5d0051
Add test to test-build to validate linting behavior
kadamwhite e8e3054
Swap out fix-style-only-entries plugin for "webpack-remove-empty-scri…
kadamwhite bf9e4a4
Do not include lint validation in prod build test because it causes C…
kadamwhite 8410f9c
Remove leftover loaders.eslint() reference
kadamwhite 62f38f8
Preserve spacing in JSON
kadamwhite 1420643
Switch back to 16-character hashes (Asset_Loader expects this)
kadamwhite 7d10a73
Adjust build stats defaults and apply to dev builds as well
kadamwhite ad40f3a
Filter out null plugin instances
kadamwhite a88e280
Add SimpleBuildReportPlugin and expose via plugins.formatConsoleOutput
kadamwhite ca2005e
Include a bundleAnalyzer plugin by default when --analyze is passed t…
kadamwhite 04f2615
Include simpleBuildReport plugin in production presets
kadamwhite 82fb64c
Tag v1.0.0-beta.7
kadamwhite 8eaa3c9
Correct language in changelog around loader filtering
kadamwhite cdd57b2
Do not deep-merge terserOptions, so that terser can be predictably co…
kadamwhite bcd10ad
Permit filtering Terser defaults
kadamwhite 1055650
Change filter strings from "loader/...", "plugin/..." etc to "loaders…
kadamwhite bc37992
Document the addFilter and removeFilter modules
kadamwhite 0743793
Finish converting loader names from "loader/" to "loaders/"
kadamwhite cde3aee
Tag v1.0.0-beta.8
kadamwhite 1591e84
Fix issue where simple build report plugin was listed as dev dependency
kadamwhite ee6d541
Tag v1.0.0-beta.9
kadamwhite e632c89
Add note about returning null from loader
kadamwhite bfbf059
Fix bug where isObj in deep-merge would return true for "null"
kadamwhite 015ad69
Include modern image formats in image asset test
kadamwhite 4ad3c3e
Upgrade bundled SimpleBuildReportPlugin
kadamwhite c319d17
Tag v1.0.0-beta.10
kadamwhite e95a890
Provide preset config as filter argument when appropriate (#207)
kadamwhite dc67783
Author initial upgrade guide
kadamwhite 0a892f5
Tag v1.0.0-beta.11
kadamwhite b12898a
Do not pass loader defaults to filters by reference to prevent mutation
kadamwhite fa464e3
Tag v1.0.0-beta.12
kadamwhite a20b4d8
Expand multi-config DevServer documentation
kadamwhite 046b247
Standardize JSDoc on @returns instead of @return
kadamwhite b42bf86
Inject development-mode asset manifest even without publicPath
kadamwhite 3201d61
Switch from [contenthash] back to [fullhash] (prev [hash]) in Dev config
kadamwhite 870f4f0
Set runtimeChunk: "single" to work around HMR issue with multiple ent…
kadamwhite 0e69dcd
Tag v1.0.0-beta.13
kadamwhite a2637c5
Automatically set devServer "host" property when we can
kadamwhite 583b5ab
Tag v1.0.0-beta.14
kadamwhite 20fff25
Remove check for whether devServer is running, devServer is not relev…
kadamwhite bfa8c6a
Revert switch to runtimeChunk: single, which requires unintuitive oth…
kadamwhite 122790e
Tag v1.0.0-beta.15
kadamwhite c7e9e6a
Only show DevServer overlay for errors, not warnings
kadamwhite 301a0f1
Store and re-use inferred publicPaths in subsequent builds to the sam…
kadamwhite 77d09e9
Tag v1.0.0-beta.16
kadamwhite 637e695
Pin [email protected]
kadamwhite 4195d37
Tag v1.0.0-beta.17
kadamwhite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,11 +1,12 @@ | ||
| language: node_js | ||
| script: "npm run lint && npm run test && npm run test-build" | ||
| node_js: | ||
| - node | ||
| - lts/* | ||
| - 16 | ||
| - 14 | ||
| - 12 | ||
| - 10 | ||
| branches: | ||
| only: | ||
| - main | ||
| - beta | ||
| - v1 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.