copy-index.js
303 Bytes
import path from 'path';
import {ncp} from 'ncp';
const sourcePath = path.resolve(__dirname, '..','server','views','index-dev.ejs');
const destPath = path.resolve(__dirname, '..','server','views','index.ejs');
function copyIndex() {
ncp(sourcePath, destPath);
}
export default copyIndex;