Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/laravel-mix/src/builder/ drwxrwxr-x | |
| Viewing file: Select action/file-type: /**
*
* @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;
/** @type {import("webpack").RuleSetRule[]} */
let rules = [];
// Add support for loading HTML files.
rules.push({
test: /\.html$/,
resourceQuery: { not: [/\?vue/i] },
use: [{ loader: mix.resolve('html-loader') }]
});
if (mix.config.imgLoaderOptions) {
// Add support for loading images.
rules.push({
// only include svg that doesn't have font in the path or file name by using negative lookahead
test: /(\.(png|jpe?g|gif|webp|avif)$|^((?!font).)*\.svg$)/,
use: [
{
loader: mix.resolve('file-loader'),
options: {
/**
* @param {string} path
*/
name: path => {
if (!/node_modules|bower_components/.test(path)) {
return (
mix.config.fileLoaderDirs.images +
'/[name].[ext]?[hash]'
);
}
return (
mix.config.fileLoaderDirs.images +
'/vendor/' +
path
.replace(/\\/g, '/')
.replace(
/((.*(node_modules|bower_components))|images|image|img|assets)\//g,
''
) +
'?[hash]'
);
},
publicPath: mix.config.resourceRoot
}
},
{
loader: mix.resolve('img-loader'),
options: mix.config.imgLoaderOptions || {}
}
]
});
}
// Add support for loading fonts.
rules.push({
test: /(\.(woff2?|ttf|eot|otf)$|font.*\.svg$)/,
use: [
{
loader: mix.resolve('file-loader'),
options: {
/**
* @param {string} path
*/
name: path => {
if (!/node_modules|bower_components/.test(path)) {
return (
mix.config.fileLoaderDirs.fonts + '/[name].[ext]?[hash]'
);
}
return (
mix.config.fileLoaderDirs.fonts +
'/vendor/' +
path
.replace(/\\/g, '/')
.replace(
/((.*(node_modules|bower_components))|fonts|font|assets)\//g,
''
) +
'?[hash]'
);
},
publicPath: mix.config.resourceRoot
}
}
]
});
// Add support for loading cursor files.
rules.push({
test: /\.(cur|ani)$/,
use: [
{
loader: mix.resolve('file-loader'),
options: {
name: '[name].[ext]?[hash]',
publicPath: mix.config.resourceRoot
}
}
]
});
return rules;
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]-- |