Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exeception files attribute #10

Open
marcusgadbem opened this issue Jul 1, 2013 · 0 comments
Open

Exeception files attribute #10

marcusgadbem opened this issue Jul 1, 2013 · 0 comments

Comments

@marcusgadbem
Copy link

Don't know if the best approach is to create a new attribute to add exception files but here is my scenario:

  • I'm using Yo and Bower along with Grunt

  • I'm building a mobile first project and through the following code snippet I load the JS lib:

    <script>
        document.write('<script src="assets/js/vendor/' +
        ('__proto__' in {} ? 'zepto' : 'jquery') +
        '.js"><\/script>')
    </script>
    

I've also configured Gruntfile to place these files directly from Bower components to my "assets/js/vendor" folder.

    concat: {
        basic_and_extras: {
            files: {
                'dist/assets/js/vendor/jquery.js': 'app/bower_components/jquery/jquery.js',
                'dist/assets/js/vendor/zepto.js': 'app/bower_components/zeptojs/index.js',
                'dist/assets/js/vendor/fastclick.js': 'app/bower_components/fastclick/lib/fastclick.js'
            }
        }
    }

As I cannot rescue new revved filename and get it automatically replaced in my code snippet, I would like to avoid these files revving.
This use case would also suits for Modernizr.load() method.

Or is there any other way to achieve this?
Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant