Skip to content

Commit

Permalink
running single demo on different port
Browse files Browse the repository at this point in the history
  • Loading branch information
akiran committed Jan 20, 2024
1 parent bb355c2 commit d91bb58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var opn = require("opn");

var UglifyJsPlugin = require("uglifyjs-webpack-plugin");

const DEV_PORT = 8080;
const DEV_PORT = process.env.DEV_PORT || 8080;

gulp.task("clean", function() {
return del(["./build/*"]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"scripts": {
"start": "NODE_OPTIONS=--openssl-legacy-provider gulp server",
"demo": "SINGLE_DEMO=true NODE_OPTIONS=--openssl-legacy-provider gulp server",
"demo": "SINGLE_DEMO=true DEV_PORT=8000 NODE_OPTIONS=--openssl-legacy-provider gulp server",
"build-dev": "gulp clean && gulp copy && webpack",
"lib": "babel ./src --out-dir ./lib",
"build": "npm run lib && gulp dist",
Expand Down

0 comments on commit d91bb58

Please sign in to comment.