Skip to content

Update concatenation-and-minification.md #103

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

Open
wants to merge 1 commit into
base: 4.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion concatenation-and-minification.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ mix.minify(['this/one.js', 'and/this/one.js']);
There are a few things worth noting here:

1. This method will create a companion `*.min.ext` file. So minifying `app.js` will generate `app.min.js`.
2. Once again, the minification will only take place during a production build. \(`export NODE_ENV=production`\).
2. Once again, the minification will only take place during a production build. \(`export NODE_ENV=production`\). You can specify different environments for the [NPM Scripts](https://laravel-mix.com/docs/4.1/installation#npm-scripts).
3. There is no need to call `mix.combine(['one.js', 'two.js'], 'merged.js').minify('merged.js');`Just stick with the single `mix.combine()` call. It'll take care of both.

> {note} Please note that minification is only available for CSS and JavaScript files. The minifier will not understand any other provided file type.