pajtai / grunt-useref

Update references, concatenate and minify with build blocks
https://npmjs.org/package/grunt-useref
MIT License
26 stars 8 forks source link

build:remove #9

Open austinpray opened 10 years ago

austinpray commented 10 years ago

Is there a build:remove type functionality on the radar? There are some scripts (mock API using angularMock and such) that only belong in a development environment.

Example:

<html>
<head>
    <!-- build:css css/combined.css -->
    <link href="css/one.css" rel="stylesheet">
    <link href="css/two.css" rel="stylesheet">
    <!-- endbuild -->
</head>
<body>
    <!-- build:remove -->
    <script type="text/javascript" src="scripts/somedevelopmentonlyscript.js"></script>
    <script type="text/javascript" src="scripts/mockapi.js"></script>
    <!-- endbuild -->

    <!-- build:js scripts/combined.js -->
    <script type="text/javascript" src="scripts/one.js"></script>
    <script type="text/javascript" src="scripts/two.js"></script>
    <!-- endbuild -->
</body>
</html>

references https://github.com/jonkemp/gulp-useref/issues/9