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:
@@ -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$/,
|
||||
|
Reference in New Issue
Block a user