@rapidload/page-optimizer
Version:
Helps you get better page speed scores by analyzing and providing optimal actions (for Wordpress)
15 lines (11 loc) • 454 B
JavaScript
const { execSync } = require('child_process');
function buildWithSourceMaps() {
console.log('Building with source maps...');
execSync('npx cross-env GENERATE_SOURCE_MAPS=true vite build', { stdio: 'inherit' });
}
function buildWithoutSourceMaps() {
console.log('Building without source maps...');
execSync('npx cross-env GENERATE_SOURCE_MAPS=false vite build', { stdio: 'inherit' });
}
buildWithSourceMaps();
buildWithoutSourceMaps();