mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-21 00:10:24 +00:00
25 lines
406 B
JavaScript
25 lines
406 B
JavaScript
import ora from 'ora';
|
|
|
|
const spinner = ora({
|
|
text: 'Building...',
|
|
spinner: 'circleQuarters',
|
|
color: 'green'
|
|
});
|
|
|
|
spinner.start();
|
|
|
|
export default function done(error, stats) {
|
|
if (error) {
|
|
throw error;
|
|
}
|
|
|
|
process.stdout.write('\n\n' + stats.toString({
|
|
colors: true,
|
|
modules: false,
|
|
children: false,
|
|
chunks: false,
|
|
chunkModules: false
|
|
}) + '\n');
|
|
|
|
spinner.stop();
|
|
}
|