-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathwebpack.mix.js
38 lines (36 loc) · 1.66 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 config = require('./webpack.config');
/*
|--------------------------------------------------------------------------
| 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.sourceMaps()
.js('resources/js/app.js', 'public/js')
.js('resources/js/swagger.js', 'public/js')
.js('resources/js/utils/alert.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.sass('resources/sass/user.scss', 'public/css')
.sass('resources/sass/announcements.scss', 'public/css')
.sass('resources/sass/edit_announcement.scss', 'public/css')
.sass('resources/sass/group.scss', 'public/css')
.sass('resources/sass/change_email_requests.scss', 'public/css')
.copy('resources/js/utils/upload_image.js', 'public/js')
.copy('resources/images/*', 'public/images')
.copy('resources/js/admin/groupMember/*', 'public/js/admin/groupMember')
.copyDirectory([
'node_modules/swagger-ui-dist/swagger-ui-bundle.js',
'node_modules/swagger-ui-dist/swagger-ui.css',
'node_modules/swagger-ui-dist/favicon-32x32.png',
'node_modules/swagger-ui-dist/favicon-16x16.png',
'node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js',
'node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js.map',
'node_modules/swagger-ui-dist/swagger-ui.css.map',
'node_modules/swagger-ui-dist/swagger-ui-bundle.js.map',
], 'public/swagger')
.webpackConfig(config);