forked from jedwards1211/meteor-webpack-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev
More file actions
executable file
·22 lines (18 loc) · 633 Bytes
/
dev
File metadata and controls
executable file
·22 lines (18 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
cd webpack
rm -rvf assets
(
# the client dev config is redundantly built beforehand so there will be a copy of
# the react commons chunk on disk for the react-runtime fork to pick up
webpack-dev-server --config webpack.config.client.dev.js --progress --colors &
webpack --config webpack.config.server.js --progress --colors --watch &
# wait for server bundle to be output
(while : ; do
[ -f 'assets/server.bundle.js' ] && break
sleep 1
done) &&
cd ../meteor_core &&
([ ! -d prod ] || mv prod .prod) &&
([ ! -d .dev ] || mv .dev dev ) &&
meteor --settings ../settings/devel.json &
) | cat