WEBAPP NEW UI FIRST COMMIT
This commit is contained in:
29
webpack.config.js
Executable file
29
webpack.config.js
Executable file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* 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();
|
||||
Reference in New Issue
Block a user