-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.mix.js
31 lines (27 loc) · 1.03 KB
/
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
let mix = require('laravel-mix');
let build = require('./tasks/build.js');
mix.disableSuccessNotifications();
mix.setPublicPath('source/assets/');
mix.webpackConfig({
plugins: [
build.jigsaw,
build.browserSync(),
build.watch(['source/**/*.md', 'source/**/*.php', 'source/**/*.scss']),
]
});
mix.js('source/_assets/js/main.js', 'js')
// .js('source/_assets/js/slick-app.js', 'js')
// .sourceMaps()
.sourceMaps(productionToo = true, type = 'eval-source-map')
.sass('source/_assets/sass/main.scss', 'css/main.css')
// .sass('source/_assets/sass/slick.scss', 'css/slick.css')
// .sass('source/_assets/sass/slick-theme.scss', 'css/slick-theme.css')
// .sass('source/_assets/sass/bootstrap.scss', 'css/bootstrap.css') // uncomment to recompile
.options({ processCssUrls: false })
// .postCss('source/assets/css/main.css', 'css/main-support.css', [
// require('autoprefixer')({
// browsers: ['> .001%'],
// grid: false
// })
// ])
.version();