Skip to content

Commit 1ced221

Browse files
author
Caio Biodere
committed
2 parents fe075e3 + 829804c commit 1ced221

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

template_src/hooks/hookers.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function (ctx) {
2929
if( ifaces[key].hasOwnProperty(ipInfoKey) ) {
3030
let ipInfo = ifaces[key][ipInfoKey]
3131

32-
if (ipInfo.family === 'IPv4' && ipInfo.address.indexOf('192.168.') === 0 && !ipInfo.internal)
32+
if (ipInfo.family === 'IPv4' && !ipInfo.internal)
3333
return ipInfo.address
3434
}
3535
}
@@ -128,9 +128,6 @@ module.exports = function (ctx) {
128128
fs.writeFileSync(configFile, conf.html(), 'utf-8')
129129
sys.cleanWww()
130130

131-
sys.deleteFolderRecursive(targetStaticFolder, true)
132-
sys.copyRecursiveSync(staticFolder, targetStaticFolder)
133-
134131
defer.resolve()
135132

136133
return defer.promise
@@ -186,6 +183,9 @@ module.exports = function (ctx) {
186183
console.error(`Error happened when webpack build: ${error}`);
187184
defer.reject(new Error(`Error happened when webpack build: ${error}`))
188185
}
186+
187+
sys.deleteFolderRecursive(targetStaticFolder, true)
188+
sys.copyRecursiveSync(staticFolder, targetStaticFolder)
189189

190190
sys.checkManifestFile()
191191

0 commit comments

Comments
 (0)