forked from Log1x/gutentweaks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
24 lines (22 loc) · 826 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
const mix = require('laravel-mix')
require('@tinypixelco/laravel-mix-wp-blocks')
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Sage application. By default, we are compiling the Sass file
| for your application, as well as bundling up your JS files.
|
*/
mix
.setPublicPath('./public')
.sass('resources/css/app.scss', 'public/css')
.sass('resources/css/editor.scss', 'public/css')
.js('resources/js/app.js', 'public/js')
.blocks('resources/js/editor.js', 'public/js')
.options({
processCssUrls: false,
postCss: [require('tailwindcss')('./tailwind.config.js')]
})