Fix webpack
This commit is contained in:
parent
933ad0b23a
commit
adbd5af8d1
2 changed files with 8 additions and 2 deletions
|
|
@ -1,8 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
make --no-print-directory watch-frontend &
|
make --no-print-directory watch-frontend | tee >(
|
||||||
make --no-print-directory watch-backend &
|
awk -v pattern="webpack" '
|
||||||
|
$0 ~ pattern {
|
||||||
|
system("make --no-print-directory watch-backend &")
|
||||||
|
}
|
||||||
|
'
|
||||||
|
) &
|
||||||
|
|
||||||
trap 'kill $(jobs -p)' EXIT
|
trap 'kill $(jobs -p)' EXIT
|
||||||
wait
|
wait
|
||||||
|
|
|
||||||
|
|
@ -157,6 +157,7 @@ export default {
|
||||||
minify: true,
|
minify: true,
|
||||||
css: true,
|
css: true,
|
||||||
legalComments: 'none',
|
legalComments: 'none',
|
||||||
|
exclude: [new RegExp(`css\\/(${Object.keys(themes).join('|')})\\.css$`)],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue