S
S
Sergey2020-04-21 09:17:18
webpack
Sergey, 2020-04-21 09:17:18

How to disable versioning in Laravel-mix?

The documentation for Laravel-mix says that it's very easy to add a version when compiling, just add mix.version(). But my version is always added if at least one rule is applied version().
How do I specify that a particular rule does not need to add a version?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2020-04-21
@bingo347

How to disable versioning in Laravel-mix?
do not use mix.version()
Laravel-mix was made for php people who are not familiar with FrontOps in general and with webpack in particular.
Yes, I do not argue, it is very convenient, but you have to pay for convenience with a lack of flexibility.
But my version is always added if version() is applied to at least one rule
mix has no "rules", it only has methods that mutate the internal state of the laravel-mix module

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question