Dist
Configuration
✎ Edit packageBelow is the default configuration for the Distribute package.
{
dist: {
src: "dist/site",
dest: "dist/prod",
baseurl: "",
extraSrcAttrs: []
},
serve: {
port: 9000,
open: true,
path: "/"
}
};
Custom Configuration
You can override these defaults by passing in options in your Gulpfile:
/* gulpfile.js */
suite.dist(gulp, {
"dist": {
"src": "/path/to/src/"
}
});
dist.baseurl required
Sets the baseurl to append to urls.
dist.src
Sets the input folder for dist task
dist.dest
Sets the output folder for dist build
dist.extraSrcAttrs
An array of extra attributes to be rewritten (e.g. data-src)
serve.port
Specifies the port to serve the built site from.
serve.open
Available configuration options are as follows:
Key | Use |
---|---|
dist.baseurl | required Sets the baseurl to append to urls. |
dist.src | Sets the input folder for dist task. This should contain your compiled site. |
dist.dest | Sets the output folder for dist build. |
serve.port | Specifies the port to serve the built site from. |