source: webpack.mix.js

Last change on this file was dfae77e, checked in by Igor Danilovski <igor_danilovski@…>, 20 months ago
  • Initial commit;
  • Property mode set to 100644
File size: 668 bytes
Line 
1const mix = require('laravel-mix');
2
3/*
4 |--------------------------------------------------------------------------
5 | Mix Asset Management
6 |--------------------------------------------------------------------------
7 |
8 | Mix provides a clean, fluent API for defining some Webpack build steps
9 | for your Laravel application. By default, we are compiling the Sass
10 | file for the application as well as bundling up all the JS files.
11 |
12 */
13
14mix.js('resources/js/app.js', 'public/js')
15 .sass('resources/sass/app.scss', 'public/css')
16 .less('resources/less/app.less', 'public/css/main-app.css')
17 .sourceMaps();
18
19if (mix.inProduction()) {
20 mix.version();
21}
Note: See TracBrowser for help on using the repository browser.