Monday, 15 May 2017

Does brunch use a glob for specifying the npm.static list

The Brunch documentation for npm.static mentions you can specify an array of js files to include as-is. However unlike other settings, it seem that you can't use a glob for this, which seems weird. I find that I have to use:

exports.npm = {
    enabled: true,
    static: ['node_modules/metalsmith-simple-search/asset/jekyll-search.js']
};

whereas I expected to be able to be less verbose and use

exports.npm = {
    enabled: true,
    static: ['**/*simple-search/asset/*.js']
};

Is this a bug, or worthy of a feature request?



via TimM

No comments:

Post a Comment