![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/clinic.corals.io/node_modules/laravel-mix/src/builder/ |
let path = require('path'); let TerserPlugin = require('terser-webpack-plugin'); /** * * @param {import("../Mix")} mix */ module.exports = function (mix) { // TODO: Remove in Mix 7 -- Here for backwards compat if a plugin requires this file mix = mix || global.Mix; return { context: mix.paths.root(), mode: mix.inProduction() ? 'production' : 'development', infrastructureLogging: mix.isWatching() ? { level: 'none' } : {}, entry: {}, output: { chunkFilename: '[name].[hash:5].js' }, module: { rules: [] }, plugins: [], resolve: { extensions: ['*', '.wasm', '.mjs', '.js', '.jsx', '.json'], roots: [path.resolve(mix.config.publicPath)] }, stats: { preset: 'errors-warnings', performance: mix.inProduction() }, performance: { hints: false }, optimization: mix.inProduction() ? { providedExports: true, sideEffects: true, usedExports: true, minimizer: [new TerserPlugin(mix.config.terser)] } : {}, devtool: mix.config.sourcemaps, devServer: { headers: { 'Access-Control-Allow-Origin': '*' }, static: path.resolve(mix.config.publicPath), historyApiFallback: true, compress: true, firewall: false }, watchOptions: { ignored: /node_modules/ } }; };