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.

29 lines
785 B

4 years ago
  1. /**
  2. * As our first step, we'll pull in the user's webpack.mix.js
  3. * file. Based on what the user requests in that file,
  4. * a generic config object will be constructed for us.
  5. */
  6. let mix = require('../src/index');
  7. let ComponentFactory = require('../src/components/ComponentFactory');
  8. new ComponentFactory().installAll();
  9. require(Mix.paths.mix());
  10. /**
  11. * Just in case the user needs to hook into this point
  12. * in the build process, we'll make an announcement.
  13. */
  14. Mix.dispatch('init', Mix);
  15. /**
  16. * Now that we know which build tasks are required by the
  17. * user, we can dynamically create a configuration object
  18. * for Webpack. And that's all there is to it. Simple!
  19. */
  20. let WebpackConfig = require('../src/builder/WebpackConfig');
  21. module.exports = new WebpackConfig().build();