feat: Add --skip-next-release option to yarn build (#1292)

This commit is contained in:
Parth Patel 2019-03-29 05:17:46 -04:00 committed by Endilie Yacop Sucipto
parent f04eea6b48
commit d279836c40
9 changed files with 165 additions and 96 deletions

View file

@ -38,11 +38,11 @@ function compile(config) {
});
}
module.exports = async function build(siteDir) {
module.exports = async function build(siteDir, options) {
process.env.NODE_ENV = 'production';
console.log('Build command invoked ...');
const props = await load(siteDir);
const props = await load(siteDir, options.skipNextRelease);
// Apply user webpack config.
const {outDir, plugins} = props;