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

Consider adding "minification" operations #46

Open
vmadman opened this issue Mar 25, 2016 · 1 comment
Open

Consider adding "minification" operations #46

vmadman opened this issue Mar 25, 2016 · 1 comment

Comments

@vmadman
Copy link
Contributor

vmadman commented Mar 25, 2016

I am thinking about allowing 2 different ways for users to specify that one or more files should be minified...

Option 1: Config

{
    "uglify": {
        "js/thefile.js": [
            "js/something.js",
            "js/other/**.js"
        ]
    }
}

Option 2: Placeholder Files

Since I generally dislike the idea of requiring users to create a config file, I was thinking it could be interesting to allow users to create placeholder files that provided blobs in a similar way that the config refers to above.

For example, if the user created /src/content/js/thefile.js_ with the following contents:

something.js
./other/**.js

.. so, basically, the .js_ extension would be treated as being special. The same could be used for other extensions, such as .css_.

@vmadman
Copy link
Contributor Author

vmadman commented Aug 25, 2017

This issue is, more or less, duplicated by #86. However, since it's not an exact duplicate, I am going to leave them both open, for now.

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

No branches or pull requests

1 participant