Update test.js

This commit is contained in:
姜棚 2021-12-03 16:19:26 +08:00
parent f8cbdcf466
commit 46ee9e113c
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ const argv = process.argv.slice(2);
const writeStatsJson = argv.indexOf('--stats') !== -1; const writeStatsJson = argv.indexOf('--stats') !== -1;
// Generate configuration // Generate configuration
const config = configFactory('test'); const config = configFactory('production');
// We require that you explicitly set browsers and do not fall back to // We require that you explicitly set browsers and do not fall back to
// browserslist defaults. // browserslist defaults.
@ -135,7 +135,7 @@ checkBrowsers(paths.appPath, isInteractive)
// Create the production build and print the deployment instructions. // Create the production build and print the deployment instructions.
function build(previousFileSizes) { function build(previousFileSizes) {
console.log('Creating an optimized test build...'); console.log('Creating an optimized production build...');
const compiler = webpack(config); const compiler = webpack(config);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {