123/myapp/webpack.mix.js

27 lines
715 B
JavaScript
Raw Normal View History

2023-08-08 22:04:06 +00:00
/* 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()