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

How do I use this with the usemin task? #65

Open
andreizilla opened this issue Nov 19, 2014 · 0 comments
Open

How do I use this with the usemin task? #65

andreizilla opened this issue Nov 19, 2014 · 0 comments

Comments

@andreizilla
Copy link

Can someone please tell me how to use grunt-newer with the usemin task? This is what my Gruntfile has:

213     // Reads HTML for usemin blocks to enable smart builds that automatically
214     // concat, minify and revision files. Creates configurations in memory so
215     // additional tasks can operate on them
216     useminPrepare: {
217       html: '<%= yeoman.app %>/index.html',
218       options: {
219         dest: 'www',
220         flow: {
221           html: {
222             steps: {
223               js: ['concat', 'uglifyjs'],
224               css: ['cssmin']
225             },
226             post: {}
227           }
228         }
229       }
230     },
231 
232     // Performs rewrites based on the useminPrepare configuration
233     usemin: {
234       html: ['www/**/*.html'],
235       css: ['www/<%= yeoman.styles %>/**/*.css'],
236       options: {
237         assetsDirs: ['www']
238       }
239     },

Thanks

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