-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpack.mix.js
23 lines (20 loc) · 944 Bytes
/
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
let path = require( 'path' );
let 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 your application, as well as bundling up your JS files.
|
*/
mix.setPublicPath( path.join( 'assets', 'dist' ) )
.version()
.js( 'assets/src/scripts/pressbooks-cas-sso.js', 'assets/dist/scripts/' )
.js( 'assets/src/scripts/login-form.js', 'assets/dist/scripts/' )
.sass( 'assets/src/styles/pressbooks-cas-sso.scss', 'assets/dist/styles/' )
.sass( 'assets/src/styles/login-form.scss', 'assets/dist/styles/' )
.copyDirectory( 'assets/src/fonts', 'assets/dist/fonts' )
.copyDirectory( 'assets/src/images', 'assets/dist/images' )