Skip to content

Commit

Permalink
Update Webpack to 5.0.0-beta and webpack-manifest-plugin to 3.0.0-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyrkan committed Oct 24, 2019
1 parent ae6c1da commit cec2405
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 231 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
"style-loader": "^0.21.0",
"terser-webpack-plugin": "^2.1.2",
"tmp": "^0.0.33",
"webpack": "^5.0.0-alpha.29",
"webpack": "^5.0.0-beta",
"webpack-cli": "^3.3.9",
"webpack-dev-server": "^3.1.14",
"webpack-manifest-plugin": "^2.2.0",
"webpack-manifest-plugin": "^3.0.0-rc",
"webpack-sources": "^1.3.0",
"yargs-parser": "^12.0.0"
},
Expand Down
28 changes: 14 additions & 14 deletions test/functional.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,11 @@ describe('Functional tests using webpack', function() {
if (!process.env.DISABLE_UNSTABLE_CHECKS) {
expect(config.outputPath).to.be.a.directory()
.with.files([
'main.59d552df.js',
'main.372683b0.js',
'styles.d8f0e981.css',
'manifest.json',
'entrypoints.json',
'runtime.8dc52f01.js',
'runtime.72c43622.js',
]);
}

Expand Down Expand Up @@ -522,14 +522,14 @@ describe('Functional tests using webpack', function() {
if (!process.env.DISABLE_UNSTABLE_CHECKS) {
expect(config.outputPath).to.be.a.directory()
.with.files([
'js_no_require_js-css_h1_style_css.8ece031f.js', // chunks are also versioned
'js_no_require_js-css_h1_style_css.23b26796.js', // chunks are also versioned
'js_no_require_js-css_h1_style_css.d8f0e981.css',
'main.b5c70a37.js',
'main.fc97662b.js',
'h1.d8f0e981.css',
'bg.569bdfd4.css',
'manifest.json',
'entrypoints.json',
'runtime.57b0e887.js',
'runtime.520e9360.js',
]);
}

Expand Down Expand Up @@ -1980,16 +1980,16 @@ module.exports = {
expect(config.outputPath).to.be.a.directory()
.with.files([
'entrypoints.json',
'runtime.9a30d6af.js',
'main.0b094c00.js',
'runtime.a0fad6a0.js',
'main.51fa674b.js',
'manifest.json',
'symfony_logo.ea1ca6f7.png',
'symfony_logo_alt.f27119c2.png',
]);

webpackAssert.assertManifestPath(
'build/main.js',
'/build/main.0b094c00.js'
'/build/main.51fa674b.js'
);
}

Expand Down Expand Up @@ -2584,11 +2584,11 @@ module.exports = {
testSetup.runWebpack(config, () => {
const integrityData = getIntegrityData(config);
const expectedHashes = {
'/build/runtime.js': 'sha384-KjFSS2dvu+r4lqjFHJIBp00twvOpbcxAjhhQkxWi0+wHAZSX8spH5bPXC3X1Youe',
'/build/runtime.js': 'sha384-GE3I+w7y71viuyyd1QDfNdmDsMVQet2ozZLzJ5fKgiITTCLnj7HpABGjNheMDJCC',
'/build/main.js': 'sha384-JQLIXdFRwxrTJm26NtiGV/FW9xzvq1PzeVDHuyGoYSVQEjlzqD68joo4dSZyZjtr',
'/build/css_roboto_font_css.js': 'sha384-C1E1NnFn1wuZNY7BoEsxbwGzss4TAyoCfbygQ/0HbDLEz+I0aYdVsu2ZJUdOY5cd',
'/build/css_roboto_font_css.css': 'sha384-hfZmq9+2oI5Cst4/F4YyS2tJAAYdGz7vqSMP8cJoa8bVOr2kxNRLxSw6P8UZjwUn',
'/build/other.js': 'sha384-QIJK03XNaHr7x8/4eo0K2MKhiz+StNjFyEFaVImkuPWfyZySHgVYFnsHDf3B+Dk5',
'/build/other.js': 'sha384-Xkv32DMZuwtWJCSKFf7nxUcbpqIEUGTEP4gkhzsCcZs1T3vAb3AsOwrfIzM2A8Gj',

// /build/vendors-node_modules_vue_dist_vue_runtime_esm_js.js's hash is not
// tested since its content seems to change based on the build environment.
Expand Down Expand Up @@ -2617,11 +2617,11 @@ module.exports = {
testSetup.runWebpack(config, () => {
const integrityData = getIntegrityData(config);
const expectedHashes = {
'http://localhost:8090/assets/runtime.js': 'sha256-Vg4lOvOByF7Sl1qCVrkqKDkv8sKE71amMu68ma2zk2w=',
'http://localhost:8090/assets/runtime.js': 'sha256-Eh8uZEZg90c3ZVCLcYK5/lwJ+YNfEEdDdCd4+44uFzE=',
'http://localhost:8090/assets/main.js': 'sha256-hPCRkZw4Z7B/LYgH6u4srjr+Gvbn7KKfvLv5VqdRQi4=',
'http://localhost:8090/assets/css_roboto_font_css.js': 'sha256-pRa4DiGFqKAIEO8XIlrpF9p0vr+2OKOWrlRYjlCyh4g=',
'http://localhost:8090/assets/css_roboto_font_css.css': 'sha256-KVo9sI0v6MnbxPg/xZMSn2XE7qIChWiDh1uED1tP5Fo=',
'http://localhost:8090/assets/other.js': 'sha256-acZSFCppVtbM07w/BMuf3nxJLsm6CVwcwqpuwFWT4u4=',
'http://localhost:8090/assets/other.js': 'sha256-BtVDcMZfNt+51j6IcSV4QNoGOcaYXfG0lLslWfxCYOo=',

// /build/vendors-node_modules_vue_dist_vue_runtime_esm_js.js's hash is not
// tested since its content seems to change based on the build environment.
Expand Down Expand Up @@ -2649,11 +2649,11 @@ module.exports = {
testSetup.runWebpack(config, () => {
const integrityData = getIntegrityData(config);
const expectedHashes = {
'/build/runtime.js': 'sha256-Vg4lOvOByF7Sl1qCVrkqKDkv8sKE71amMu68ma2zk2w= sha512-nad7e9R958ZaPiSYMWdlNgC3/MJ90/xznt5H6BzEg2jPxCWgqbJcKj3+qIj4vn+5IBZiiH09KzjwDQ/SZBsbQA==',
'/build/runtime.js': 'sha256-Eh8uZEZg90c3ZVCLcYK5/lwJ+YNfEEdDdCd4+44uFzE= sha512-wB0fCDvUAAq6ciDQs493wWG4us/YJnMoqsN27TFxi+7o5IkDyBnPcChddsP9c/DNgu+nFwGof/UsODSoBKSU9A==',
'/build/main.js': 'sha256-hPCRkZw4Z7B/LYgH6u4srjr+Gvbn7KKfvLv5VqdRQi4= sha512-WfSpazoaWJ8Hz+ub+lo47iR267tF5lEttHfpen8fwF1PJ0xSVAUGM4ow2GhdJlr4/nGMSkquRpuOV61J/P++XA==',
'/build/css_roboto_font_css.js': 'sha256-pRa4DiGFqKAIEO8XIlrpF9p0vr+2OKOWrlRYjlCyh4g= sha512-9foiWpZ0CfkHMhEkgQbCrkITlk4tmzUWmHLCbMz68+GekxV0CNx5syi/w+JhK4NN3P8A1Yvx9/NTD/J3aq1VkQ==',
'/build/css_roboto_font_css.css': 'sha256-6AltZJTjdVuLywCBE8qQevkscxazmWyh/19OL6cxkwY= sha512-zE1kAcqJ/jNnycEwELK7BfauEgRlK6cGrN+9urz4JI1K+s5BpglYFF9G0VOiSA7Kj3w46XX1WcjZ5w5QohBFEw==',
'/build/other.js': 'sha256-acZSFCppVtbM07w/BMuf3nxJLsm6CVwcwqpuwFWT4u4= sha512-sRe54tEfDJyeL9aHwZkDgPAWtLcg+aSPqs9zBeFTbIkpsk9KwuaiLqC5VnRDuwAcsaM0RLkLs3GiuxIa5ZYDPg==',
'/build/other.js': 'sha256-BtVDcMZfNt+51j6IcSV4QNoGOcaYXfG0lLslWfxCYOo= sha512-H60t4ZdzBlwLG2dayxrWQkqph/6uYujlfxtZsrknXHnzWcrJknSa/t1NO3zmAViSXIGr2naBpP2c8srJ7YInqA==',

// /build/vendors-node_modules_vue_dist_vue_runtime_esm_js.js's hash is not
// tested since its content seems to change based on the build environment.
Expand Down

0 comments on commit cec2405

Please sign in to comment.