-
Notifications
You must be signed in to change notification settings - Fork 7
/
webpack.mix.distribution.js
36 lines (33 loc) · 1.12 KB
/
webpack.mix.distribution.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
/**
* Laravel mix - JustLight theme
*
* Output:
* - dist
* - jc-theme-justlight
* - resources
* - css (minified)
* - fonts
* - views
* module.php
* LICENSE.md
* README.md
* - justlight-x.zip
*
*/
let mix = require('laravel-mix');
let config = require('./webpack.mix.config');
require('laravel-mix-clean');
//https://github.com/gregnb/filemanager-webpack-plugin
const FileManagerPlugin = require('filemanager-webpack-plugin');
mix
.setPublicPath('./dist')
.copyDirectory(config.build_dir, config.dist_dir + '/resources/css')
.copyDirectory(config.public_dir + '/fonts', config.dist_dir + '/resources/fonts')
.copyDirectory(config.public_dir + '/js', config.dist_dir + '/resources/js')
.copyDirectory(config.public_dir + '/lang', config.dist_dir + '/resources/lang')
.copyDirectory(config.public_dir + '/views', config.dist_dir + '/resources/views')
.copy('JustlightTheme.php', config.dist_dir)
.copy('module.php', config.dist_dir)
.copy('LICENSE.md', config.dist_dir)
.copy('README.md', config.dist_dir)
.clean();