-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwebpack.mix.settings.js
56 lines (41 loc) · 1.37 KB
/
webpack.mix.settings.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// webpack.mix.settings.js - webpack settings config
// Webpack Mix settings exports
// noinspection WebpackConfigHighlighting
module.exports = {
// Dev domain to proxy
devProxyDomain: process.env.DEFAULT_SITE_URL || "https://laravel-mix-tailwind-starter.test",
// Paths to observe for changes then trigger a full page reload
devWatchPaths: ['./templates/**/*.twig', './templates/**/*.html', './web/*.html'],
// Port to use with webpack-dev-server
devServerPort: 8080,
// Optimise image sources? Note: can slow down rebuild times
imagemin: false,
// Create icon sprites?
icons: true,
// Urls for CriticalCss to look for "above the fold" Css
criticalCssUrls: [
{ urlPath: "/", label: "index" },
// { urlPath: "/about", label: "about" },
],
// Folder served to users
publicFolder: "web",
// Folder name for built src assets (publicFolder base)
publicBuildFolder: "dist",
// scripts source
srcScripts: "src/scripts",
// styles sources
srcStyles: "src/styles",
// icons sources
srcIcons: "src/icons",
// images sources
srcImages: "src/images",
// static sources
srcStatic: "src/static",
// Shared vendor modules - empty params = separate all *used* node_modules
vendor: [
"alpinejs",
'lazysizes',
'pubsub-js',
'vue',
],
};