Skip to content
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

[9.x] Webpack 5 / fix issues #2607

Merged
merged 40 commits into from Nov 27, 2021
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1c90578
Update webpack from v3 to v5.
strarsis Dec 31, 2020
d6fae85
Change hash to fullhash (deprecation).
strarsis Dec 31, 2020
0fa3214
Fix BrowserSync.
strarsis Jan 1, 2021
b2b7349
Fix postcss peer dependency.
strarsis Jan 1, 2021
7e56fba
Fix lint error.
strarsis Jan 1, 2021
373a8d9
Update webpack.config.js
strarsis Feb 8, 2021
ec5d593
Bump node engine version.
strarsis Feb 10, 2021
7ba589f
Remove incompatible dependency (friendly-errors-webpack-plugin).
strarsis Feb 10, 2021
28d205c
Re-add friendly-errors-webpack-plugin dependency (from fixed PR for n…
strarsis Feb 10, 2021
b65273f
Use webpack5 PR repository for sage-lib (PR branch testing).
strarsis Feb 11, 2021
e795356
Replace deprecated [hash:8]
strarsis Feb 12, 2021
7fac5fb
Move buble to devDependencies.
strarsis Feb 12, 2021
8e33cb3
Update CHANGELOG.md
strarsis Feb 12, 2021
acc041d
Remove `:8` hash postfix.
strarsis Feb 13, 2021
8bab69f
Merge branch 'webpack5' of https://github.com/strarsis/sage into webp…
strarsis Feb 13, 2021
bef8232
Replace copy plugin with maintained, contrib one.
strarsis Feb 13, 2021
2904cdd
Update yarn lockfile.
strarsis Feb 13, 2021
1d747a8
Update yarn lockfile.
strarsis Feb 13, 2021
67ce1d0
Use [contenthash] instead of [fullhash] to get around webpack 5 issue…
strarsis Feb 13, 2021
11e4827
Enable `contextRelativeKeys` so emitted assets also have context-rela…
strarsis Feb 22, 2021
4e0996b
Add note about slightly new path resolve behavior.
strarsis Mar 10, 2021
dfe5c5d
Fix Sage release version (current in master is v9.0.10).
strarsis Mar 10, 2021
b61ecc4
Use higher version bump for new release version (9.1).
strarsis Mar 10, 2021
37c0005
Update copy-webpack-plugin to v8.0.0 (including config adjustments).
strarsis Mar 18, 2021
480976b
Fix indents.
strarsis Mar 18, 2021
0db81ca
Update stylelint-config-standard to latest release.
strarsis Mar 18, 2021
7cc577c
Update dev dependencies.
strarsis Jun 2, 2021
83175ab
Update node versions in travis.
strarsis Jun 2, 2021
5683e22
Update PHP versions in travis.
strarsis Jun 2, 2021
c3e964c
Update dev dependency.
strarsis Jun 2, 2021
57891a4
Update sage-installer (dev).
strarsis Jun 2, 2021
4bd6861
Update sage-installer (dev).
strarsis Jun 2, 2021
848bc0b
Add filp/whoops dev dependency for Sage 10-like PHP error handling.
strarsis Jun 3, 2021
5499e5e
Re-add Friendly-errors-webpack-plugin (fork).
strarsis Jun 5, 2021
c303bab
Update build dependencies.
strarsis Jun 15, 2021
6d40a61
Use Soil 4.x theme support, as in Sage 10.
strarsis Aug 27, 2021
fde0c7f
Cosmetic code change.
strarsis Aug 27, 2021
760524e
Update dependencies (sass).
strarsis Sep 15, 2021
8966bfa
Fix PHPCS lint error.
strarsis Sep 15, 2021
f079e27
Re-update lockfile.
strarsis Sep 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
### 9.1.0: February, 2021
* Update Webpack v3 to v5
* Update Node dependencies
* Minor change: Paths (as `@import`s) in assets are now resolved relative to `resources/` directory,
instead to the entrypoint stylesheet (main.scss).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is breaking, but clearly, we can’t call this v10.0.0. Just one of those times we're not quite SemVer 🤷🏻

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth trying to restore the previous path resolving behavior? Not sure if this had been a bug with the earlier webpack components.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new behavior makes much more sense, and is simpler, but if we want to avoid this being a breaking change, yeah, restoring the previous behavior is needed.


### 9.0.10: November 9th, 2020
* Update Node dependencies ([#2572](https://github.com/roots/sage/pull/2572))
* Composer 2 compatibility ([#2569](https://github.com/roots/sage/pull/2569))
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Expand Up @@ -31,6 +31,9 @@
"App\\": "app/"
}
},
"repositories": [
{ "type": "vcs", "url": "https://github.com/strarsis/sage-installer" }
],
"require": {
"php": ">=7.1",
"composer/installers": "~1.9",
Expand All @@ -40,7 +43,7 @@
},
"require-dev": {
"squizlabs/php_codesniffer": "^2.8.0",
"roots/sage-installer": "~1.6"
"roots/sage-installer": "dev-webpack5"
},
"scripts": {
"test": ["phpcs"],
Expand Down