-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
executable file
·30 lines (28 loc) · 999 Bytes
/
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
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.setPublicPath(path.resolve('./'));
mix.sass('assets/src/sass/app.scss', 'assets/dist');
mix.js('assets/src/js/app.js', 'assets/dist');
mix.copyDirectory('assets/src/img', 'assets/dist/img');
mix.copyDirectory('assets/src/fonts/', 'assets/dist/fonts');
mix.version();
mix.browserSync({
proxy: 'https://brighthr--test1.test',
https: true,
files: [
'assets/dist/app.css', // Generated .css file
'assets/dist/app.js', // Generated .js file
'templates/**/*.+(html|twig)',
'craft/templates/**/*.+(html|twig)',
'index.php'
]
});