-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathwebpack.mix.js
31 lines (27 loc) · 1.08 KB
/
webpack.mix.js
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
29
30
31
const mix = require('laravel-mix');
const webpackConfig = require('./webpack.config');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your theme assets. By default, we are compiling the CSS
| file for the application as well as bundling up all the JS files.
|
*/
mix
.webpackConfig(webpackConfig)
.options({
manifest: false,
});
mix.js('src/framework-bundle.js', 'dist/framework-bundle.min.js');
mix.js('src/framework-extras.js', 'dist/framework-extras.min.js');
mix.js('src/framework-turbo.js', 'dist/framework-turbo.min.js');
mix.js('src/framework.js', 'dist/framework.min.js');
if (!mix.inProduction()) {
mix.js('src/framework-bundle.js', 'dist/framework-bundle.js');
mix.js('src/framework-extras.js', 'dist/framework-extras.js');
mix.js('src/framework-turbo.js', 'dist/framework-turbo.js');
mix.js('src/framework.js', 'dist/framework.js');
}