-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
42 lines (37 loc) · 1012 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
30
31
32
33
34
35
36
37
38
39
40
41
42
const mix = require('laravel-mix');
require('laravel-mix-purgecss');
mix.pug = require('laravel-mix-pug');
mix
.copy('src/dist/fonts', 'dist/fonts')
.copy('src/dist/assets', 'dist/assets')
.js('./src/js/app.js', 'dist/js')
.js('./src/js/app-2.js', 'dist/js')
.sass('./src/sass/externals.sass', 'css')
.sass('./src/sass/app.sass', 'css')
.pug('src/views/*.pug', '../../dist',
{
// seeds:'./src/js/data',
pug: {
pretty: true,
// debug: true
},
})
.setPublicPath('./dist')
// .purgeCss({
// extend: {
// content: [path.join(__dirname, 'database/data/**/*.json')],
// },
// })
// .postCss()
.sourceMaps(true, 'source-map')
/* Tools */
.browserSync({server: 'dist', proxy: null})
// .disableNotifications()
/* Options */
// .options({
// processCssUrls: false
// })
;
if (mix.inProduction()) {
mix.version();
}