1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 19:21:18 -04:00

profile webpack assets in build log

This commit is contained in:
2021-07-03 09:09:55 -04:00
parent d11644e523
commit 2e5405b9ac
5 changed files with 48 additions and 42 deletions

View File

@@ -42,16 +42,6 @@ export default {
new MiniCssExtractPlugin({
filename: isProd ? "css/[name]-[contenthash:6].css" : "css/[name].css",
}),
new SriPlugin({
hashFuncNames: ["sha512"],
enabled: true,
}),
new WebpackAssetsManifest({
writeToDisk: true,
output: path.resolve(__dirname, "data/manifest.json"),
publicPath: true,
integrity: true,
}),
new CopyPlugin({
patterns: [
{
@@ -64,6 +54,16 @@ export default {
},
],
}),
new SriPlugin({
hashFuncNames: ["sha512"],
enabled: true,
}),
new WebpackAssetsManifest({
writeToDisk: true,
output: path.resolve(__dirname, "data/manifest.json"),
publicPath: true,
integrity: true,
}),
],
module: {
rules: [
@@ -138,6 +138,7 @@ export default {
],
},
optimization: {
minimize: isProd,
minimizer: [
new TerserPlugin({
test: /\.js$/,