Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mix no longer minifies js moved with copyDirectory #3369

Open
jhjvandenbroek opened this issue Aug 9, 2023 · 0 comments
Open

Mix no longer minifies js moved with copyDirectory #3369

jhjvandenbroek opened this issue Aug 9, 2023 · 0 comments

Comments

@jhjvandenbroek
Copy link

jhjvandenbroek commented Aug 9, 2023

  • Laravel Mix Version: 6.0.49
  • Node Version: v20.5.0
  • NPM Version (npm -v): 9.8.0
  • OS: Mac OS

Description:

In 6.0.43 this used to minify when running npm run prod. with 6.0.49 the files are not minified

EDIT: Apparently this was changed in this PR:
#3256

Steps To Reproduce:

Use something like this in webpack.mix.js:

const mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | 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.
 |
 */

mix.js('resources/js/app.js', 'public/js')
    .sass('resources/sass/app.scss', 'public/css')
    .copyDirectory('resources/js/custom/pages', 'public/js/pages')
    .version();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant