-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
26 lines (21 loc) · 715 Bytes
/
webpack.mix.js
File metadata and controls
26 lines (21 loc) · 715 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
/* Mix provides a clean, fluent API for defining some Webpack build steps for your Masonite
applications. By default, we are compiling the CSS file for the application as well as
bundling up all the JS files. */
const mix = require('laravel-mix')
const path = require('path')
mix.js('resources/js/app.js', 'storage/compiled/js')
.postCss('resources/css/app.css', 'storage/compiled/css', [
//
])
// ensure root directory of mix is project root
mix.setPublicPath(".")
// add an alias to js code
mix.alias({
"@": path.resolve("resources/js/"),
})
// add version hash in production
if (mix.inProduction()) {
mix.version()
}
// Disable compilation success notification
mix.disableSuccessNotifications()