sails.js v0.10 create new project --linker not working Gruntfile.js not used

后端 未结 2 481
借酒劲吻你
借酒劲吻你 2020-12-21 07:17

With the default version of sails on npm (v.9?) --linker works ok i.e. creates /linker folder. I can copy js, css files to assets/linker/ and they appear in

2条回答
  •  我在风中等你
    2020-12-21 07:29

    As an add-on to sgress454's answer, the reason a .tmp folder is created is so that files like the ejs and less files can be compiled into formats that your browser will understand. It's similar to the way that when you compile Java, it converts to Java bytecode (just an analogy, definitely not the same process).There doesn't necessarily have to be any .tmp folder when you're not running the server though; this is something Grunt creates and is what the browser reads from. Hope this clarifies things a bit more.

提交回复
热议问题