-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwinter.mix.js
42 lines (38 loc) · 1021 Bytes
/
winter.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
30
31
32
33
34
35
36
37
38
39
40
41
42
const mix = require('laravel-mix');
const tailwindcss = require('tailwindcss');
mix.setPublicPath(__dirname);
mix
// Backend
.postCss(
'./formwidgets/leveleditor/assets/src/css/leveleditor.css',
'./formwidgets/leveleditor/assets/dist/css/leveleditor.css',
[
tailwindcss('./tailwind.backend.config.js'),
require('tailwindcss/nesting'),
require('postcss-import')
]
)
.js(
'formwidgets/leveleditor/assets/src/js/leveleditor.js',
'formwidgets/leveleditor/assets/dist/js/leveleditor.js'
)
// Client
.postCss(
'classes/engine/client/css/app.css',
'assets/app.css',
[
tailwindcss('./tailwind.frontend.config.js'),
require('tailwindcss/nesting'),
require('postcss-import'),
]
)
.js(
'classes/engine/client/client.js',
'assets/client.js'
)
.vue();
mix.webpackConfig({
stats: {
children: true
}
});