Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Removing uglify #442

Open
mlewisTW opened this issue Sep 25, 2014 · 1 comment
Open

Removing uglify #442

mlewisTW opened this issue Sep 25, 2014 · 1 comment

Comments

@mlewisTW
Copy link

Your documentation implies that I can edit the flow for just the js, without affecting the css. I found that the following didn't work:

    useminPrepare: {
        html: '<%= buildDir %>/index.html',
        options: {
            dest: '<%= buildDir %>',
            flow: {
                html: {
                    steps: {
                        js: ['concat']
                    }
                }
            }
        }
    }

First, I had to add post: {}, which is ridiculous. How are users supposed to figure this out?

Then, I was getting "No cssmin targets found", and fixed that by adding back the steps: { css: ['concat', 'cssmin']. And so the above turns into:

    useminPrepare: {
        html: '<%= buildDir %>/index.html',
        options: {
            dest: '<%= buildDir %>',
            flow: {
                html: {
                    steps: {
                        js: ['concat'],
                        css: ['concat', 'cssmin']
                    },
                    post: {}
                }
            }
        }
    }

Am I missing something?

@stephanebachelier
Copy link
Collaborator

OK reopen this with docs label. Need to document this issue.

stephanebachelier added a commit to stephanebachelier/grunt-usemin that referenced this issue Apr 13, 2015
stephanebachelier added a commit to stephanebachelier/grunt-usemin that referenced this issue Apr 14, 2015
stephanebachelier added a commit to stephanebachelier/grunt-usemin that referenced this issue Apr 14, 2015
should fix other problem in yeoman#442
stephanebachelier added a commit to stephanebachelier/grunt-usemin that referenced this issue Apr 15, 2015
should fix other problem in yeoman#442
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants