You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
785 B
30 lines
785 B
4 years ago
|
/**
|
||
|
* As our first step, we'll pull in the user's webpack.mix.js
|
||
|
* file. Based on what the user requests in that file,
|
||
|
* a generic config object will be constructed for us.
|
||
|
*/
|
||
|
let mix = require('../src/index');
|
||
|
|
||
|
let ComponentFactory = require('../src/components/ComponentFactory');
|
||
|
|
||
|
new ComponentFactory().installAll();
|
||
|
|
||
|
require(Mix.paths.mix());
|
||
|
|
||
|
/**
|
||
|
* Just in case the user needs to hook into this point
|
||
|
* in the build process, we'll make an announcement.
|
||
|
*/
|
||
|
|
||
|
Mix.dispatch('init', Mix);
|
||
|
|
||
|
/**
|
||
|
* Now that we know which build tasks are required by the
|
||
|
* user, we can dynamically create a configuration object
|
||
|
* for Webpack. And that's all there is to it. Simple!
|
||
|
*/
|
||
|
|
||
|
let WebpackConfig = require('../src/builder/WebpackConfig');
|
||
|
|
||
|
module.exports = new WebpackConfig().build();
|