When I would change something in template, I need flush static cache(pub/static) because I didn't saw any changes in front end, but after that this folders has some empty folder and in front end I have some error ReferenceError: require is not defined
and I need use this command c:\xampp\php\php.exe -f d:\projects\localsites\magento2.local\magento\bin\magento -- setup:static-content:deploy
to generate static content. Maybe I do something wrong?
Asked
Active
Viewed 1,831 times
0

Andrii
- 57
- 4
- 11
1 Answers
4
When you developing something for magento2 you should enable developer mode and static willn't has cache and will generation all requests.

Anton Ohorodnyk
- 891
- 5
- 20
-
I enable developer mode before. – Andrii Nov 27 '15 at 13:01
-
Did you change any options in admin about html/css/js? – Anton Ohorodnyk Nov 27 '15 at 13:03
-
No, I just set custom theme and setting fallback, that all. I have always flush static cache when do something with template or css/js – Andrii Nov 27 '15 at 13:06
-
No. Always after flash static cache, folders pub/static is empty – Andrii Nov 27 '15 at 13:26
-
3in developer mode static folder always will empty, but you shouldn't get any errors and css/js should work fine, question about errors and not about empty folder or not – Anton Ohorodnyk Nov 27 '15 at 19:18
-
I installed magento 2 at ubuntu and all problems are gone. Maybe xampp on Windows doesn't has some library or something else – Andrii Nov 29 '15 at 10:04