chore: upgrade webpack encore from 4.7 to 7.2
This commit is contained in:
1 parent
1cda9d378a
commit
2de985b009
5 files changed
+1140
-4915
No files matched your search
+1
-1
@@ -51,7 +51,7 @@ $rsyncOptions = [
|
|||||||
'phpunit.xml.dist',
|
'phpunit.xml.dist',
|
||||||
'public/.htaccess',
|
'public/.htaccess',
|
||||||
'tailwind.config.js',
|
'tailwind.config.js',
|
||||||
'webpack.config.js',
|
'webpack.config.mjs',
|
||||||
'rapidapi.paw',
|
'rapidapi.paw',
|
||||||
'bin/.phpunit',
|
'bin/.phpunit',
|
||||||
'temp/*',
|
'temp/*',
|
||||||
|
|||||||
Generated
+1122
-4895
File diff suppressed because it is too large.
Load diff
+9
-9
@@ -1,23 +1,24 @@
|
|||||||
{
|
{
|
||||||
"name": "myep-team",
|
"name": "myep-team",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.17.0",
|
"@babel/core": "^8.0.0",
|
||||||
"@babel/preset-env": "^7.16.0",
|
"@babel/preset-env": "^8.0.0",
|
||||||
"@hotwired/stimulus": "^3.0.0",
|
"@hotwired/stimulus": "^3.0.0",
|
||||||
"@symfony/stimulus-bridge": "^3.2.0",
|
"@symfony/stimulus-bridge": "^3.2.0",
|
||||||
"@symfony/webpack-encore": "^4.0.0",
|
"@symfony/webpack-encore": "^7.2.0",
|
||||||
"@tailwindcss/forms": "^0.5.6",
|
"@tailwindcss/forms": "^0.5.6",
|
||||||
"@tailwindcss/postcss": "^4.3.3",
|
"@tailwindcss/postcss": "^4.3.3",
|
||||||
"@trevoreyre/autocomplete-js": "^2.4.1",
|
"@trevoreyre/autocomplete-js": "^2.4.1",
|
||||||
|
"babel-plugin-polyfill-corejs3": "^1.0.0",
|
||||||
"chart.js": "^4.5.1",
|
"chart.js": "^4.5.1",
|
||||||
"core-js": "^3.23.0",
|
"core-js": "^3.50.0",
|
||||||
"dropzone": "^6.0.0-beta.2",
|
"dropzone": "^6.0.0-beta.2",
|
||||||
"file-loader": "^6.2.0",
|
|
||||||
"flatpickr": "^4.6.13",
|
"flatpickr": "^4.6.13",
|
||||||
"htmx.org": "^2.0.11",
|
"htmx.org": "^2.0.11",
|
||||||
|
"lightningcss": "^1.32.0",
|
||||||
"mjml": "^4.15.3",
|
"mjml": "^4.15.3",
|
||||||
"postcss": "^8.4.29",
|
"postcss": "^8.4.29",
|
||||||
"postcss-loader": "^7.3.3",
|
"postcss-loader": "^8.1.1",
|
||||||
"pretty-bytes": "^6.1.1",
|
"pretty-bytes": "^6.1.1",
|
||||||
"regenerator-runtime": "^0.13.9",
|
"regenerator-runtime": "^0.13.9",
|
||||||
"sortablejs": "^1.15.0",
|
"sortablejs": "^1.15.0",
|
||||||
@@ -25,13 +26,12 @@
|
|||||||
"tailwindcss": "^4.3.3",
|
"tailwindcss": "^4.3.3",
|
||||||
"tippy.js": "^6.3.7",
|
"tippy.js": "^6.3.7",
|
||||||
"toastify-js": "^1.12.0",
|
"toastify-js": "^1.12.0",
|
||||||
"webpack": "^5.74.0",
|
"webpack": "^5.101.0",
|
||||||
"webpack-cli": "^4.10.0"
|
"webpack-cli": "^7.0.0"
|
||||||
},
|
},
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev-server": "encore dev-server",
|
|
||||||
"dev": "encore dev",
|
"dev": "encore dev",
|
||||||
"watch": "encore dev --watch",
|
"watch": "encore dev --watch",
|
||||||
"build": "encore production --progress",
|
"build": "encore production --progress",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const Encore = require('@symfony/webpack-encore');
|
import Encore from '@symfony/webpack-encore';
|
||||||
|
|
||||||
// Manually configure the runtime environment if not already configured yet by the "encore" command.
|
// Manually configure the runtime environment if not already configured yet by the "encore" command.
|
||||||
// It's useful when you use tools that rely on webpack.config.js file.
|
// It's useful when you use tools that rely on webpack.config.js file.
|
||||||
@@ -50,17 +50,15 @@ Encore
|
|||||||
// config.plugins.push('@babel/a-babel-plugin');
|
// config.plugins.push('@babel/a-babel-plugin');
|
||||||
// })
|
// })
|
||||||
|
|
||||||
// enables and configure @babel/preset-env polyfills
|
// adds the core-js polyfills the code uses (Babel 8 dropped useBuiltIns/corejs for this)
|
||||||
.configureBabelPresetEnv((config) => {
|
.configureBabel((config) => {
|
||||||
config.useBuiltIns = 'usage';
|
config.plugins.push(['babel-plugin-polyfill-corejs3', { method: 'usage-global', version: '3.50' }]);
|
||||||
config.corejs = '3.23';
|
|
||||||
})
|
})
|
||||||
|
|
||||||
.enablePostCssLoader()
|
.enablePostCssLoader()
|
||||||
|
|
||||||
// postcss-calc cannot parse Tailwind 4's calc(infinity * 1px) and warns on every build
|
.configureCssMinimizerPlugin((options, MinimizerPlugin) => {
|
||||||
.configureCssMinimizerPlugin((options) => {
|
options.minify = MinimizerPlugin.lightningCssMinify;
|
||||||
options.minimizerOptions = { preset: ['default', { calc: false }] };
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// enables Sass/SCSS support
|
// enables Sass/SCSS support
|
||||||
@@ -84,4 +82,4 @@ Encore
|
|||||||
])
|
])
|
||||||
;
|
;
|
||||||
|
|
||||||
module.exports = Encore.getWebpackConfig();
|
export default await Encore.getWebpackConfig();
|
||||||
Reference in new issue
Block a user