


- Phpstorm filewatcher stylus windows 10#
- Phpstorm filewatcher stylus code#
- Phpstorm filewatcher stylus windows#
Phpstorm filewatcher stylus windows#
Phpstorm filewatcher stylus windows 10#
I tested these approaches on an 8GB Windows 10 Home VM with Docker 2.3.0.3 and DDEV-Local v1.14.2 and the Ubuntu 20.04 distro. We’ll walk through both of these approaches.

PHPStorm works fine this way, but it’s yet another complexity to manage and requires enabling X11 (easy) on your Windows system.
Phpstorm filewatcher stylus code#
The performance is incredible (on a par with native Linux installations) and the WSL2 command-line environment is fresh and clean.Īs noted in the WSL2 blog article, Visual Studio Code is doing great with WSL2, but PHPStorm is lagging a bit behind.

I don't want to alt+tab in console to see if grunt watch finished the task and than alt+tab to refresh a browser window.WSL2 with DDEV-Local is a wonderful new world for Windows developers. This is why I want to have Grunt in PhpStorm. Next step is to find out how PhpStorm can refresh a browser window after it completes the watcher's task. But now I'm thinking why not just use grunt watch in console. Nothing here instead of the default field value. 'Outputs path to refresh': I've cleaned it.You can run clean and exec in console if you need it. less:my_theme takes already 5 secs to run. I could have in 'Arguments' this instead: clean:my_theme exec:my_theme less:my_theme but not sure if I want to.'Program': grunt (my dev machine sees this command globally).css files because these are in pub/static and not in vendors/my_namespace/my_theme dir. I have added a few more dirs from vendors// In 'Scope' there should be the directory of your theme from vendors// because we suppose to change files here.Package grunt-cli: /usr/local/lib/node_modules/grunt-cliĪssuming one configured the project as in:Īnd has configured also the store them in \dev\tools\grunt\configs\themes.jsĪdd a File Watcher in Settings > Tools > File Watchers as explained here:.Node interpreter: /usr/bin/node (exists).$ /usr/bin/node //dev/tools/grunt/tasks/bin/grunt -no-color -verbose -gruntfile //Gruntfile.js -tasks /home///PhpStorm/plugins/JavaScriptLanguage/grunt_js/tasks _intellij_grunt_tasks_fetcherĮrror: Cannot find module '//dev/tools/grunt/tasks/bin/grunt'Īt Function.Module._resolveFilename (module.js:338:15)Īt Function.Module._load (module.js:280:25)Īt (module.js:497:10) Failed to list grunt tasks in /Gruntfile.js: process finished with exit code 8 (a non-zero exit code means an error) I'm aiming to have PhpStorm run grunt watch and refresh the page in browser. I have a /node_modules/ dir.Īnd grunt clean:, exec and watch work in console. I get the error bellow when I 'Reload tasks' in PhpStorm. I'm trying to configure Grunt in PhpStorm.
