You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.
I use several grunt plugins during development, concat, uglify, spritesmith, sass, liquid, connect and watch. My watchers are set up in a nice way to run the exact tasks I need at any time.
When I have only one .liquid file to parse, with whatever amount of includes, my watch task sees that there has been modification in the markup folder and runs the liquid task, browser refreshes, all fine.
But! When I have multiple .liquid files to create multiple .html files from, the watch task runs the liquid task, generates the correct files, but then my grunt watch task exits and the node.js command prompt waits for a command.
Let me know if you need anything at all from me, details, configuration files, I enjoy this plugin very much and would like to help you find this bug.
The text was updated successfully, but these errors were encountered:
The liquid task within your Gruntfile's 'watch' needs to have spawn enabled. Cons: It will make .liquid compilation quite slow. My environment takes 20-25 seconds on average.
However, you can use grunt-newer to only compile the changed .liquid template and ignore the rest. This brings the compilation time down to 14-15 seconds.
I wish I didn't have to use spawn - because the compile time is <1s without it. But it's the only way to make it work right now.
watch: {liquidTemplate: {options: {spawn: true,},files: "views/**/*.liquid",tasks: ['newer:liquid']}}// end watch
I was also having this problem. Basically whenever I ran the liquid task before the watch task it exited to the console. In the end I used grunt-concurrent to bundle my liquid and sass tasks and put the watch after. This works fine.
I have the following issue:
I use several grunt plugins during development, concat, uglify, spritesmith, sass, liquid, connect and watch. My watchers are set up in a nice way to run the exact tasks I need at any time.
When I have only one .liquid file to parse, with whatever amount of includes, my watch task sees that there has been modification in the markup folder and runs the liquid task, browser refreshes, all fine.
But! When I have multiple .liquid files to create multiple .html files from, the watch task runs the liquid task, generates the correct files, but then my grunt watch task exits and the node.js command prompt waits for a command.
Let me know if you need anything at all from me, details, configuration files, I enjoy this plugin very much and would like to help you find this bug.
The text was updated successfully, but these errors were encountered: