This repository was archived by the owner on Feb 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
41 lines (34 loc) · 1.62 KB
/
webpack.mix.js
File metadata and controls
41 lines (34 loc) · 1.62 KB
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
32
33
34
35
36
37
38
39
40
41
const 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.
|
*/
// version allows us to keep the page up to date on the client.
mix.js('resources/assets/js/frontend.js', 'public/assets/')
.sass('resources/assets/sass/frontend.scss', 'public/assets/');
/*
|--------------------------------------------------------------------------
| Back End 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.
|
*/
// editor
mix.copyDirectory('resources/admin/package/tinymce', 'public/assets');
mix.copyDirectory('resources/admin/package/elfinder', 'public/packages/barryvdh/elfinder/');
mix.copyDirectory('resources/admin/images', 'public/images');
// mix.copyDirectory('resources/admin/images', 'public/packages/webshelf/images/');
mix
.js('resources/admin/assets/js/backend.js', 'public/assets/')
.sass('resources/admin/assets/sass/backend.scss', 'public/assets/');
// The editor requires a non version sample of the asset frontend.
// mix.sass('resources/assets/sass/frontend.scss', 'public/assets/editor_style.css');