mirror of https://github.com/realodix/urlhub.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
785 B
34 lines
785 B
const mix = require('laravel-mix');
|
|
|
|
mix.postCss('resources/css/main.css', 'public/css', [
|
|
require('tailwindcss/nesting'),
|
|
require('tailwindcss'),
|
|
])
|
|
.sass('resources/sass/backend.scss', 'css/backend.css')
|
|
.sass('resources/sass/frontend.scss', 'css/frontend.css')
|
|
.js('resources/js/frontend.js', 'js/frontend.js')
|
|
.js('resources/js/backend.js', 'js/backend.js');
|
|
|
|
mix.extract()
|
|
.version()
|
|
.setPublicPath('public')
|
|
.options({
|
|
autoprefixer: true,
|
|
processCssUrls: false,
|
|
})
|
|
.disableSuccessNotifications();
|
|
|
|
if (!mix.inProduction()) {
|
|
mix.webpackConfig({
|
|
devtool: 'source-map',
|
|
})
|
|
.sourceMaps()
|
|
.browserSync({
|
|
open: 'external',
|
|
host: 'urlhub.test',
|
|
proxy: 'urlhub.test'
|
|
})
|
|
}
|
|
|
|
mix.disableSuccessNotifications();
|