My project directory is structured as follows
I hope webstorm’s monitor can help me monitor all. coffee under coffee.
At the same time, we hope that the compiled js can maintain a consistent directory structure.
There are many ways, of course, the most WebStorm way is to use macro.
- Coffee directory
Then open preference-> tools-> filewatchers and double-click your coffewatcher to edit. Enter in Arguments
--output $ProjectFileDir$/frontEndDir/js/$FileDirPathFromParent(coffee)$ --map --compile $FileName$
Complete, praise and attention.