-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
39 lines (28 loc) · 1.04 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
32
33
34
35
36
37
38
let mix = require('laravel-mix');
let webpack = require('webpack');
// require('laravel-mix-bundle-analyzer');
//
// if (mix.isWatching()) {
// mix.bundleAnalyzer();
// }
mix.webpackConfig({
plugins: [
// Only russian and english locales for moment.js
new webpack.ContextReplacementPlugin(/moment[\\/]locale$/, /^\.\/(ru)$/)
]
});
mix.options({
processCssUrls: false,
});
// Font Awesome WebFonts
mix.copy('node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.*', 'public/assets/admin/fonts/font-awesome');
// Custom fonts
mix.copy('resources/assets/admin/fonts', 'public/assets/admin/fonts');
mix.copy('node_modules/tabler-ui/src/assets/images', 'public/assets/admin/images');
mix.copy('resources/assets/admin/images', 'public/assets/admin/images');
mix.js('resources/assets/admin/js/app.js', 'public/assets/admin/js/app.js');
mix.sass('resources/assets/admin/sass/app.scss', 'public/assets/admin/css/app.css');
mix.version([
'public/assets/admin/js/app.js',
'public/assets/admin/css/app.css',
]);