forked from avored/laravel-ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
29 lines (24 loc) · 838 Bytes
/
webpack.mix.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
const mix = require('laravel-mix')
const tailwindcss = require('tailwindcss')
require('laravel-mix-alias')
// console.log(process.env.APP_URL)
let url = process.env.APP_URL.replace(/(^\w+:|^)\/\//, '')
mix.options({
hmrOptions: {
host: url,
port: 8081
}
})
mix.alias({'@': 'resources/js'})
/******** AVORED Global Vue and AvoRed Instance for custom modular component register JS **********/
mix.js('resources/js/avored.js', 'js/avored.js')
/******** AVORED JS **********/
mix.js('resources/js/app.js', 'js/app.js')
/******** AVORED COPY IMAGES **********/
mix.copyDirectory('resources/images', 'public/images')
/******** AVORED CSS **********/
mix.sass('resources/sass/tailwind.scss', 'css/app.css')
.options({
processCssUrls: false,
postCss: [ tailwindcss('tailwind.config.js') ],
})