Page MenuHomeDevCentral

D663.diff
No OneTemporary

D663.diff

diff --git a/config.yml b/config.yml
--- a/config.yml
+++ b/config.yml
@@ -1,6 +1,9 @@
# Your project's server will run on localhost:xxxx at this port
PORT: 8000
+# https://localtunnel.github.io/www/
+TUNNEL: "serverslog"
+
# Autoprefixer will make sure your CSS works with these browsers
COMPATIBILITY:
- "last 2 versions"
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -17,7 +17,7 @@
const PRODUCTION = !!(yargs.argv.production);
// Load settings from settings.yml
-const { COMPATIBILITY, PORT, UNCSS_OPTIONS, PATHS } = loadConfig();
+const { COMPATIBILITY, PORT, TUNNEL, UNCSS_OPTIONS, PATHS } = loadConfig();
function loadConfig() {
let ymlFile = fs.readFileSync('config.yml', 'utf8');
@@ -119,7 +119,7 @@
// Start a server with BrowserSync to preview the site in
function server(done) {
browser.init({
- server: PATHS.dist, port: PORT
+ server: PATHS.dist, port: PORT, tunnel: TUNNEL
});
done();
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jun 7, 20:39 (6 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2709746
Default Alt Text
D663.diff (996 B)

Event Timeline