Skip to content

Commit

Permalink
Update webpack mix file & rebuild assets
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiDy committed Oct 22, 2024
1 parent dea85b2 commit 3048a2e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
2 changes: 1 addition & 1 deletion public/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/app.js": "/app.js?id=d8d93ed193c62c114dd41006b33f6c6b",
"/app.js": "/app.js?id=eae5d82f88b6fed98b8acac7c84c3e7e",
"/app.css": "/app.css?id=0272a198c80d6cac3ef50f6d5d9326e9"
}
28 changes: 6 additions & 22 deletions webpack.mix.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
const mix = require('laravel-mix');
const webpack = require('webpack');
const path = require('path');

/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
const mix = require("laravel-mix");
const path = require("path");

mix.options({
terser: {
Expand All @@ -22,7 +10,7 @@ mix.options({
},
},
})
.setPublicPath('public')
.setPublicPath("public")
.js('resources/js/app.js', 'public')
.vue()
.sass('resources/css/app.scss', 'public')
Expand All @@ -31,13 +19,9 @@ mix.options({
resolve: {
symlinks: false,
alias: {
'@': path.resolve(__dirname, 'resources/js/'),
"@": path.resolve(__dirname, "resources/js/"),
},
},
plugins: [
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
],
});

mix.disableSuccessNotifications();

0 comments on commit 3048a2e

Please sign in to comment.