magento - Changes to CSS and JavaScript applies only after deploying static content -
i installed magento 2 magento site. have activated developer mode by
{project directory}>php bin/magento setup:mode:set developer
then have installed custom theme , deployed static content by
{project directory}>php bin/magento setup:static-content:deploy
my problem have delete pub/static
directory , deploy static content every time apply css , javacript changes. static content deploy process slow , taking time frustrating. develop , have deploy change appeared. small change. flushing cache not helping. appreciated. in advance.
the grunt jobs should enough run when change css.
so can run:
grunt exec grunt less
or specified theme name:
grunt exec:theme_name grunt less:theme_name
check in database in core_config_data table , disable minify fields magento doesn't minify css / js while develop. can use sql query disable fields:
update core_config_data set value=0 path in ('dev/css/minify_files', 'dev/css/merge_css_files', 'dev/js/minify_files', 'dev/js/merge_files')
Comments
Post a Comment