-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
38 lines (36 loc) · 1.61 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
const { mix } = require('laravel-mix');
const Path = require('path');
/*
|--------------------------------------------------------------------------
| 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
.webpackConfig({
output: { chunkFilename: 'chunks/[name].bundle.js', publicPath: '/' },
resolve: {
modules: [
'node_modules',
'bower_components',
],
enforceExtension: false,
alias: {
"TweenLite": Path.resolve('node_modules', 'gsap/src/uncompressed/TweenLite.js'),
"TweenMax": Path.resolve('node_modules', 'gsap/src/uncompressed/TweenMax.js'),
"TimelineLite": Path.resolve('node_modules', 'gsap/src/uncompressed/TimelineLite.js'),
"TimelineMax": Path.resolve('node_modules', 'gsap/src/uncompressed/TimelineMax.js'),
"ScrollMagic": Path.resolve('node_modules', 'scrollmagic/scrollmagic/uncompressed/ScrollMagic.js'),
"animation.gsap": Path.resolve('node_modules', 'scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap.js'),
"debug.addIndicators": Path.resolve('node_modules', 'scrollmagic/scrollmagic/uncompressed/plugins/debug.addIndicators.js')
}
},
})
.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css')
.copy('resources/assets/images', 'public/images')
.browserSync('lv-fabricate.dev');