webpack.mix.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 38
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 6
Bugs 1 Features 1
Metric Value
wmc 0
c 6
b 1
f 1
dl 0
loc 38
rs 10
cc 0
nc 1
mnd 0
bc 0
fnc 0
bpm 0
cpm 0
noi 0
1
const mix = require('laravel-mix');
2
const webpack = require('webpack');
3
4
/*
5
 |--------------------------------------------------------------------------
6
 | Mix Asset Management
7
 |--------------------------------------------------------------------------
8
 |
9
 | Mix provides a clean, fluent API for defining some Webpack build steps
10
 | for your Laravel application. By default, we are compiling the Sass
11
 | file for the application as well as bundling up all the JS files.
12
 |
13
 */
14
15
mix
16
    .setPublicPath('public')
17
    .js('resources/assets/js/app.js', 'public/js')
18
    // .copyDirectory(
19
    //     'public/fonts/vendor',
20
    //     'public/fonts/vendor'
21
    // )
22
    .copy('public', '../../../public/vendor/postman')
23
    // .copy('resources/assets/img', 'public/img')
24
    // .copyDirectory('public/fonts', 'public/fonts') 
25
    .sourceMaps()
26
    .version();
27
28
29
mix.webpackConfig({
30
    plugins: [
31
        new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
32
    ],
33
    resolve: {
34
        alias: {
35
            'vue$': 'vue/dist/vue.runtime.esm.js'
36
        }
37
    }
38
});
39