Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Sep 16, 2021
1 parent 334597b commit 8888464
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ module.exports = async () => {

const mix = require('../src/Mix').primary;

// Would like to use dynamic imports here to support mjs files but we can't because of v8-compile-cache
// We'll have to switch away from webpack-cli so we can have more control
require(mix.paths.mix());

await mix.installDependencies();
Expand Down
11 changes: 11 additions & 0 deletions src/Build/BuildGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ exports.BuildGroup = class BuildGroup {
this.context = new BuildContext(mix);
}

/**
* @internal
*
* For parallel build mode if we get to it. Probably won't.
*/
async build() {
const webpack = require('webpack');

return await webpack(await this.config());
}

/**
* Build the webpack configs for this context and all of its children
*
Expand Down

0 comments on commit 8888464

Please sign in to comment.