forked from ppy/osu-web
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
28 lines (21 loc) · 839 Bytes
/
webpack.config.js
File metadata and controls
28 lines (21 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* 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.
*/
const path = require('path');
require(path.resolve(__dirname, 'node_modules/laravel-mix/src/index'));
Mix.paths.setRootPath(path.resolve(__dirname));
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(path.resolve(__dirname, 'node_modules/laravel-mix/src/builder/WebpackConfig'));
module.exports = new WebpackConfig().build();