-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulp.config.js
More file actions
29 lines (24 loc) · 877 Bytes
/
gulp.config.js
File metadata and controls
29 lines (24 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* WPGulp Configuration File
*
* 1. Edit the variables as per project requirements.
* 2. Everything else is in the gulpfile to keep it consistent across our projects.
*/
// Define the default project configuration.
let projectConfig = {
// Local project URL of your already running WordPress site. Could be something like wpgulp.local or localhost:3000 depending upon your local WordPress setup.
serverConfig: {
proxy: 'nusaweb.loc',
},
};
/**
* Check for local project config and overwrite it
*
* Create a file that exports your local configuration as an object to use a custom projectUrl and/or browsers list (if you really must).
*/
import fs from 'fs';
if ( fs.existsSync( './gulp.config.local.js' ) ) {
const localConfig = require( './gulp.config.local.js' );
projectConfig = { ...projectConfig, ...localConfig };
}
module.exports = projectConfig;