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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -