-
Notifications
You must be signed in to change notification settings - Fork 626
/
webpack.mix.js
36 lines (31 loc) · 985 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
24
25
26
27
28
29
30
31
32
33
34
35
36
let mix = require('laravel-mix');
let tailwindcss = require('tailwindcss');
require('laravel-mix-jigsaw');
mix.disableSuccessNotifications();
mix.setPublicPath('source/assets/build');
mix.js('source/_assets/js/main.js', 'js')
.sourceMaps()
.js('source/_assets/js/turbolinks.js', 'js')
.js('source/_assets/js/extsb.js', 'js')
.postCss('source/_assets/css/main.css', 'css/main.css', [
require('precss')(),
tailwindcss('./tailwind.config.js')
])
.sourceMaps()
.jigsaw({
watch: ['config.php','navigation.php', 'source/**/*.md', 'source/**/*.php', 'source/_assets/css/**/*.css'],
browserSyncOptions: {
snippetOptions: {
rule: {
match: /<\/head>/i,
fn: function (snippet, match) {
return snippet + match;
}
}
}
}
})
.options({
processCssUrls: false
})
.version();