-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
54 lines (50 loc) · 1.56 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
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your application. See https://github.com/JeffreyWay/laravel-mix.
|
*/
const proxy = 'https://stage-camerise.learnful.app/learnful_studio_01/web/';
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Configuration
|--------------------------------------------------------------------------
*/
mix
.webpackConfig({
// Use the jQuery that ships with Drupal to avoid conflicts
externals: {
jquery: 'jQuery'
}
})
.setPublicPath('assets')
.disableNotifications()
.options({
processCssUrls: false
});
/*
|--------------------------------------------------------------------------
| Browsersync
|--------------------------------------------------------------------------
*/
mix.browserSync({
proxy: proxy,
files: ['assets/js/**/*.js', 'assets/css/**/*.css'],
stream: true,
});
/*
|--------------------------------------------------------------------------
| SASS
|--------------------------------------------------------------------------
*/
mix.sass('src/sass/learnful_studio.style.scss', 'css');
/*
|--------------------------------------------------------------------------
| JS
|--------------------------------------------------------------------------
*/
mix.js('src/js/learnful_studio.script.js', 'js');