-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
34 lines (28 loc) · 1.13 KB
/
webpack.mix.js
File metadata and controls
34 lines (28 loc) · 1.13 KB
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
/*
* Seedwps-Plugin uses Laravel Mix
*
* Check the documentation at
* https://laravel.com/docs/5.6/mix
*/
let mix = require( 'laravel-mix' );
// You can comment this line if you don't need jQuery
mix.autoload({
jquery: ['$', 'window.jQuery', 'jQuery'],
});
mix.setPublicPath( './assets/dist' );
// Compile assets
mix.js( 'assets/src/scripts/seedwpsplugin.js', 'assets/dist/js' )
.js( 'assets/src/scripts/portfolio-show.js', 'assets/dist/js' )
.js( 'assets/src/scripts/portfolio-template.js', 'assets/dist/js' )
.js( 'assets/src/scripts/auth.js', 'assets/dist/js' )
.js( 'assets/src/scripts/checkpostboxbydefault.js', 'assets/dist/js' )
.js( 'assets/src/scripts/portfoliologoupload.js', 'assets/dist/js' )
.sass( 'assets/src/sass/portfolio-show.scss', 'assets/dist/css' )
.sass( 'assets/src/sass/portfolio-admin-post.scss', 'assets/dist/css' )
.sass( 'assets/src/sass/portfolio-template.scss', 'assets/dist/css' )
.sass( 'assets/src/sass/auth.scss', 'assets/dist/css' )
.sass( 'assets/src/sass/seedwpsplugin.scss', 'assets/dist/css' );
// Add versioning to assets in production environment
if ( mix.inProduction() ) {
mix.version();
}