-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwebpack.mix.js
More file actions
38 lines (34 loc) · 1.16 KB
/
Copy pathwebpack.mix.js
File metadata and controls
38 lines (34 loc) · 1.16 KB
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
30
31
32
33
34
35
36
37
38
let mix = require('laravel-mix');
mix.browserSync({
proxy: 'https://axeptio.ddev.site',
https: true,
files: ['./templates/**/*.php', './includes/**/*.php', './dist/js/**/*.js', './dist/css/**/*.css']
});
mix.webpackConfig({
plugins: []
});
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for your application, as well as bundling up your JS files.
|
*/
mix.setPublicPath('dist');
mix
.copy('assets/img', 'dist/img')
.copy('assets/fonts', 'dist/fonts')
.js('assets/js/backend/app.js', 'dist/js/backend/app.js')
.js('assets/js/frontend/axeptio.js', 'dist/js/frontend/axeptio.js')
.postCss('assets/css/backend/main.css', 'dist/css/backend/', [
require('postcss-nested'),
require('autoprefixer'),
require('tailwindcss')
])
.postCss('assets/css/frontend/main.css', 'dist/css/frontend/', [require('postcss-nested'), require('autoprefixer')])
.options({
processCssUrls: false
});