2

安装 magento 2 CE 后,我有

ReferenceError: require is not defined在控制台中。我找到了这个解决方案

c:\xampp\php\php.exe -f d:\projects\localsites\magento2.local\magento\bin\magento -- setup:static-content:deploy 这对我有帮助,但是每次我刷新静态缓存时,这个问题都会再次发生。我怎样才能“永远”解决这个问题。

4

1 回答 1

0

切换到开发者模式,静态内容会自动部署(不需要setup:static-content:deploy)。

于 2015-11-27T10:48:20.677 回答