-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43e8f14
commit 61e3066
Showing
5 changed files
with
33 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
const { assertSupportedNodeVersion } = require('../src/Engine'); | ||
const Mix = require("../src/Mix") | ||
|
||
module.exports = async () => { | ||
module.exports = () => { | ||
assertSupportedNodeVersion(); | ||
|
||
const mix = Mix.primary; | ||
const config = await import('./webpack.config.mjs'); | ||
|
||
// Load the user's mix config | ||
await mix.load(); | ||
|
||
// Install any missing dependencies | ||
await mix.installDependencies(); | ||
|
||
// Start running | ||
await mix.init(); | ||
|
||
// Turn everything into a config | ||
return await mix.build(); | ||
return await config.default(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Mix from '../src/Mix'; | ||
|
||
export default async function () { | ||
const mix = Mix.primary; | ||
|
||
// Load the user's mix config | ||
await mix.load(); | ||
|
||
// Install any missing dependencies | ||
await mix.installDependencies(); | ||
|
||
// Start running | ||
await mix.init(); | ||
|
||
// Turn everything into a config | ||
return await mix.build(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters