Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 38 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 6 | ||
Bugs | 1 | Features | 1 |
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 |