Verified Commit aef90289 authored by Korko's avatar Korko
Browse files

Minify/bundle analyzer

parent 5423451f
Pipeline #339708 passed with stages
in 18 minutes and 22 seconds
module.exports = function (api) { api.cache(true);
const presets = ["@babel/preset-env",];
const plugins = ["@babel/plugin-proposal-optional-chaining"];
return { presets, plugins };};
\ No newline at end of file
......@@ -5,6 +5,8 @@ require('laravel-mix-purgecss');
require('laravel-mix-polyfill');
require('laravel-mix-modernizr');
require('laravel-mix-bundle-analyzer');
mix.webpackConfig({
plugins: [
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
......@@ -33,6 +35,11 @@ mix.webpackConfig({
// Matches all PHP or JSON files in `resources/lang` directory.
test: /resources[\\\/]lang.+\.(php|json)$/,
loader: 'laravel-localization-loader',
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: "babel-loader"
}
]
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment