made with esnextbin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path') | |
const fs = require('fs-extra') | |
const critical = require('critical') | |
const dir = require('node-dir') | |
// const distPath = path.join(__dirname, '..', '..', 'dist') | |
const firstArg = process.argv.slice(2)[0]; | |
// path comes back to root, appends dist folder | |
var distPath = path.join(__dirname, '..', '..', firstArg, 'dist'); | |
console.info('distPath: ' + distPath) |