generated from yewstack/yew-wasm-pack-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Trunk.toml
15 lines (12 loc) · 1.03 KB
/
Trunk.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[[hooks]]
stage = "post_build"
command = "bash"
command_arguments = ["-c", "find $TRUNK_STAGING_DIR -type f -name \"*.html\" -exec sh -c 'minify --minify-css --minify-js --keep-html-and-head-opening-tags --keep-closing-tags --ensure-spec-compliant-unquoted-attribute-values -o $1 $1' sh {} \\; "]
[[hooks]]
stage = "post_build"
command = "bash"
command_arguments = ["-c", "cp $TRUNK_STAGING_DIR/manifest.webmanifest $TRUNK_STAGING_DIR/manifest.json;find $TRUNK_STAGING_DIR -type f -name \"*.json\" -exec minifier {} \\; -exec sh -c 'f=$(basename $1 .json);d=$(dirname $1);rm -f $1;cp \"$d/$f.min.json\" \"$d/$f.json\";rm -f \"$d/$f.min.json\"' sh {} \\; ; cp $TRUNK_STAGING_DIR/manifest.json $TRUNK_STAGING_DIR/manifest.webmanifest; rm -f $TRUNK_STAGING_DIR/manifest.json"]
[[hooks]]
stage = "post_build"
command = "bash"
command_arguments = ["-c", "find $TRUNK_STAGING_DIR -type f -name \"*.css\" -exec minifier {} \\; -exec sh -c 'f=$(basename $1 .css);d=$(dirname $1);rm -f $1;cp \"$d/$f.min.css\" \"$d/$f.css\";rm -f \"$d/$f.min.css\"' sh {} \\;"]