-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
31 lines (28 loc) · 826 Bytes
/
webpack.mix.js
File metadata and controls
31 lines (28 loc) · 826 Bytes
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
let mix = require('laravel-mix');
// Path to dist folder
const DIST = 'assets';
// Proxy an existing virtual host (eg: 'myhost.dev', 'localhost/bootstrap-myhost').
// If null, use the built-in static server.
const PROXY = null;
mix.options({
clearConsole: true,
processCssUrls: false,
})
.setPublicPath('/')
.copyDirectory('resources/images', 'assets/images')
.sass('resources/scss/theme.scss', 'assets/css')
.js('resources/js/theme.js', 'assets/js')
.extract(['jquery', 'uikit'])
.browserSync({
server: PROXY === null,
proxy: PROXY,
files: [
'*.{php|html|htm|js}',
'layouts/*.htm',
'partials/**/*.*',
'pages/*.*',
DIST + '/**/*',
'*.*'
],
injectChanges: true
});