forked from tastyigniter/ti-theme-orange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
73 lines (68 loc) · 2.13 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
let mix = require('laravel-mix');
mix.setPublicPath('./').options({
processCssUrls: false,
})
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your TastyIgniter application. By default, we are copying all the
| dependencies for the theme into the assets folder.
| Compilation is done by the theme customizer in the Admin Panel.
|
*/
//
// Copy fonts from node_modules
//
mix.copyDirectory(
'node_modules/@fortawesome/fontawesome-free-webfonts/webfonts',
'assets/fonts/FontAwesome'
).copyDirectory(
'node_modules/@fortawesome/fontawesome-free-webfonts/scss',
'assets/src/scss/vendor/FontAwesome'
).copyDirectory(
'node_modules/bootstrap/scss',
'assets/src/scss/vendor/bootstrap'
);
mix.copy(
'node_modules/bootstrap/dist/js/bootstrap.min.js.map',
'assets/src/js/bootstrap.min.js.map'
).copy(
'node_modules/select2/dist/js/select2.min.js',
'assets/src/js/vendor/select2.min.js'
).copy(
'node_modules/jquery-raty-js/lib/jquery.raty.js',
'assets/src/js/vendor/jquery.raty.js'
).copy(
'node_modules/jquery-raty-js/lib/jquery.raty.css',
'assets/src/scss/vendor/jquery.raty.scss'
).copy(
'node_modules/animate.css/animate.css',
'assets/src/scss/vendor/animate.scss'
).copy(
'node_modules/select2-theme-bootstrap4/src/select2-bootstrap.scss',
'assets/src/scss/vendor/select2-bootstrap.scss'
)
//
// Build SCSS
//
// Leave commented to use the admin theme customizer to compile your assets,
// or uncomment to use webpack to compile
//
// mix.sass('assets/src/scss/app.scss', 'assets/css/');
//
// Combine Vendor JS
//
// Leave commented to use the theme customizer to compile your assets,
// or uncomment to use webpack to compile
//
// mix.scripts(
// [
// '../../core/app/system/assets/ui/flame.js',
// 'assets/src/js/vendor/select2.min.js',
// 'assets/src/js/vendor/jquery.raty.js',
// 'assets/src/js/app.js',
// ],
// 'assets/js/app.js')