Dashboard sipadu mbip
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

webpack.config.js 785B

1234567891011121314151617181920212223242526272829
  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();