Gruntjs 如何将querystring附加到帆船上的GruntBuilder?

Gruntjs 如何将querystring附加到帆船上的GruntBuilder?,gruntjs,npm,sails.js,Gruntjs,Npm,Sails.js,我的资产是“链接”的,就像 <script src="/js/library-x.js"></script> 唯一的问题是grunt链接器,它会在每次提升时替换布局中的字符串 <script src="/js/library-x.js?v=GITHUB_LAST_COMMIT"></script> <script src="/js/library-x.js?v=NPM_PACKAGE_VERSION"></script>

我的资产是“链接”的,就像

<script src="/js/library-x.js"></script>
唯一的问题是grunt链接器,它会在每次提升时替换布局中的字符串

<script src="/js/library-x.js?v=GITHUB_LAST_COMMIT"></script>
<script src="/js/library-x.js?v=NPM_PACKAGE_VERSION"></script>
module.exports.globals = {
    ....
    package: require('../package.json')
};