aboutsummaryrefslogtreecommitdiff
path: root/webpack.mix.js
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-03-07 21:32:08 +0100
committerMateja <mail@matejamaric.com>2021-03-07 21:32:08 +0100
commitd67fe1f656491c28f837946f0c34d6485f708dcf (patch)
tree36b549b9388050ac28434956dc045649d112e10c /webpack.mix.js
parent99780d02d2e0db0dc677f87ff236b0b867e270cb (diff)
downloadyota-laravel-d67fe1f656491c28f837946f0c34d6485f708dcf.tar.gz
yota-laravel-d67fe1f656491c28f837946f0c34d6485f708dcf.zip
Setting up Laravel Mix.
- Install necessary node packages - Setup `webpack.mix.js` - Don't track public files that change on asset compilation - Compile `resources/sass` files (Bootstrap) - Remove unused `resources/css/app.css` file
Diffstat (limited to 'webpack.mix.js')
-rw-r--r--webpack.mix.js22
1 files changed, 5 insertions, 17 deletions
diff --git a/webpack.mix.js b/webpack.mix.js
index 24f767b..95a6ded 100644
--- a/webpack.mix.js
+++ b/webpack.mix.js
@@ -1,19 +1,7 @@
const mix = require('laravel-mix');
-/*
- |--------------------------------------------------------------------------
- | Mix Asset Management
- |--------------------------------------------------------------------------
- |
- | Mix provides a clean, fluent API for defining some Webpack build steps
- | for your Laravel applications. By default, we are compiling the CSS
- | file for the application as well as bundling up all the JS files.
- |
- */
-
-mix.js('resources/js/*.js', 'public/js')
- //.sass('resources/sass/*.sass', 'public/css')
- //.sass('resources/sass/*.scss', 'public/css')
- .postCss('resources/css/app.css', 'public/css', [
- //
- ]);
+mix.sass('resources/sass/app.scss', 'public/css').version()
+ .js('resources/js/app.js', 'public/js')
+ .extract(['lodash', 'axios', 'vue', 'jquery', 'popper.js', 'bootstrap'])
+ .sourceMaps()
+ .version();