-
Notifications
You must be signed in to change notification settings - Fork 31
/
webpack.mix.js
48 lines (42 loc) · 1.72 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
const mix = require('laravel-mix');
mix.webpackConfig({
externals: { 'jquery': 'jQuery' }
});
/*
|--------------------------------------------------------------------------
| Default Tweeki skin styles and scripts
|--------------------------------------------------------------------------
|
| Those mix functions are compiling the default scripts and styles for
| the Tweeki skin. Files compiled from with this mix functions do
| overwirte the default Tweeki assets. Those files will also be
| overwritten with any git update from the skin repository.
|
* /
mix.js('resources/scripts/tweeki.js', 'public/default/js')
.sass('resources/styles/tweeki.scss', 'public/default/css');
/*
|--------------------------------------------------------------------------
| Custom Tweeki skin styles
|--------------------------------------------------------------------------
|
| Those functions are meant to be used for custom assets. If you would like
| to create your own skin assets create the listed files and use the npm
| scripts to create custom assets. Custom assets have to be activated
| from whitin the skin settings to be used by your skin installation.
|
| You can rename the given files as follows to have a basic setup for your
| own skin styles and scripts:
|
| - ./resources/scripts/example.custom.js => ./resources/scripts/custom.js
| - ./resources/styles/example.custom.scss => ./resources/styles/custom.scss
|
*/
mix.js('resources/scripts/custom.js', 'public/custom/js')
.sass('resources/styles/custom.scss', 'public/custom/css')
.options({
processCssUrls: false
})
.copyDirectory('resources/fonts', 'public/custom/fonts');
mix.browserSync({ proxy: process.env.MIX_LOCAL_PROXY_URL });
/**/