Disable IPv6 default for npm
This commit is contained in:
parent
ea6b94b289
commit
257d1b3c7e
8
build.sh
8
build.sh
@ -1,7 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
npm install -Dy
|
# Concourse Worker doesn't support IPv6 well yet.
|
||||||
npm -y exec webpack
|
function npm-ipv4() {
|
||||||
|
node --dns-result-order=ipv4first $(which npm) $*
|
||||||
|
}
|
||||||
|
npm-ipv4 install -Dy
|
||||||
|
npm-ipv4 -y exec webpack
|
||||||
cp ./node_modules/xterm/css/xterm.css ./assets/
|
cp ./node_modules/xterm/css/xterm.css ./assets/
|
||||||
cp dist/main.js ./assets/main.js
|
cp dist/main.js ./assets/main.js
|
||||||
cd hugo-static
|
cd hugo-static
|
||||||
|
Loading…
Reference in New Issue
Block a user