mirror of https://github.com/vector-im/riot-web
Fix webpack deprecation warnings
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/27570/head
parent
a0eb94704e
commit
4651bf4eb4
|
@ -38,7 +38,7 @@ module.exports.pitch = function pitch(request) {
|
||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
if (entries[0]) {
|
if (entries[0]) {
|
||||||
return cb(null, `module.exports = __webpack_public_path__ + ${JSON.stringify(entries[0].files[0])};`);
|
return cb(null, `module.exports = __webpack_public_path__ + ${JSON.stringify([...entries[0].files][0])};`);
|
||||||
}
|
}
|
||||||
return cb(null, null);
|
return cb(null, null);
|
||||||
});
|
});
|
||||||
|
|
|
@ -657,8 +657,8 @@ module.exports = (env, argv) => {
|
||||||
|
|
||||||
// This exports our CSS using the splitChunks and loaders above.
|
// This exports our CSS using the splitChunks and loaders above.
|
||||||
new MiniCssExtractPlugin({
|
new MiniCssExtractPlugin({
|
||||||
filename: useHMR ? "bundles/[name].css" : "bundles/[hash]/[name].css",
|
filename: useHMR ? "bundles/[name].css" : "bundles/[fullhash]/[name].css",
|
||||||
chunkFilename: useHMR ? "bundles/[name].css" : "bundles/[hash]/[name].css",
|
chunkFilename: useHMR ? "bundles/[name].css" : "bundles/[fullhash]/[name].css",
|
||||||
ignoreOrder: false, // Enable to remove warnings about conflicting order
|
ignoreOrder: false, // Enable to remove warnings about conflicting order
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
@ -774,9 +774,9 @@ module.exports = (env, argv) => {
|
||||||
// directory and symlink it into place - this allows users who loaded
|
// directory and symlink it into place - this allows users who loaded
|
||||||
// an older version of the application to continue to access webpack
|
// an older version of the application to continue to access webpack
|
||||||
// chunks even after the app is redeployed.
|
// chunks even after the app is redeployed.
|
||||||
filename: "bundles/[hash]/[name].js",
|
filename: "bundles/[fullhash]/[name].js",
|
||||||
chunkFilename: "bundles/[hash]/[name].js",
|
chunkFilename: "bundles/[fullhash]/[name].js",
|
||||||
webassemblyModuleFilename: "bundles/[hash]/[modulehash].wasm",
|
webassemblyModuleFilename: "bundles/[fullhash]/[modulehash].wasm",
|
||||||
},
|
},
|
||||||
|
|
||||||
// configuration for the webpack-dev-server
|
// configuration for the webpack-dev-server
|
||||||
|
|
Loading…
Reference in New Issue