What is “{.tmp,app} ” in Yeoman generator?

后端 未结 1 1860
一个人的身影
一个人的身影 2021-02-19 23:03

I am getting started with the Yeoman workflow, but I can\'t seem to completely understand the \"alternate search path\" for the usemin task in the index.html file. For example,

相关标签:
1条回答
  • 2021-02-19 23:49
    <!-- build:js({.tmp,app}) scripts/scripts.js -->
    <!-- endbuild -->
    

    In yeoman js scripts are available in the app folder, but when the user is using CoffeeScript grunt task will convert .coffee files to .js files. Those generated .js files will be available in .tmp folder with the same folder structure.

    In those condition ({.tmp,app}) is used to tell grunt-usemin to search both in app and .tmp folder, so that the build won't miss out generated js files.

    scripts/scripts.js is the destination file after the build.

    0 讨论(0)
提交回复
热议问题