26 lines
715 B
JavaScript
Executable file
26 lines
715 B
JavaScript
Executable file
/* 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()
|