Change tasks to async functions

This commit is contained in:
Chauncey McAskill
2021-09-15 17:22:39 -04:00
parent b46fb31dfe
commit 7479444572
4 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ import fs from 'fs';
/**
* Concatenates third-party JavaScript files.
*/
export function concatVendors() {
export async function concatVendors() {
const filename = 'vendors.js';
const outfile = paths.scripts.dest + filename;
const external = [

View File

@@ -6,7 +6,7 @@ import esbuild from 'esbuild';
/**
* Bundles and minifies main JavaScript files.
*/
export function compileScripts() {
export async function compileScripts() {
[
'app.js',
].forEach((filename) => {

View File

@@ -9,7 +9,7 @@ import notification from './utils/notification.js';
/**
* Compiles and minifies main Sass files to CSS.
*/
export function compileStyles() {
export async function compileStyles() {
[
'critical',
'main',

View File

@@ -6,7 +6,7 @@ import mixer from 'svg-mixer';
/**
* Generates and transforms SVG spritesheets.
*/
export function compileSVGs() {
export async function compileSVGs() {
[
{
includes: [ paths.svgs.src + '*.svg' ],