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

Running the task but nothing is happening #212

Open
Freego1783 opened this issue Nov 18, 2016 · 2 comments
Open

Running the task but nothing is happening #212

Freego1783 opened this issue Nov 18, 2016 · 2 comments

Comments

@Freego1783
Copy link

Freego1783 commented Nov 18, 2016

I'm trying to fingerprint the assets of my project using your grunt plugins but nothing happens actually. I see your plugin getting called but then it seems to run and never end, without any error message. That's why i don't get what is happening.

Here are the relevant parts of my grunt config :

cacheBust:{
            taskName: {
                options: {
                    assets: ['public/js/main.js'],
                    queryString: true
                },
                src: ['app/views/index.scala.html']
            }
        }

grunt.loadNpmTasks('grunt-cache-bust');

grunt.registerTask('cacheBust', ['cacheBust']);

I tried playing around with the paths to the files but without success.

Any help would be much appreciated !

@st0at
Copy link

st0at commented Nov 16, 2017

are you sure that
grunt.registerTask('cacheBust', ['cacheBust']);
is necessary? Because for me it works without it.

@alpha-and-omega
Copy link

Solution
Change
grunt.registerTask('cacheBust', ['cacheBust']);
to:
grunt.registerTask('lolcacheBust', ['cacheBust']);

grunt cacheBust command probably starts some internal magic related to cacheBust module itself and leads to this bug.

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

3 participants