grunt-useref icon indicating copy to clipboard operation
grunt-useref copied to clipboard

build:remove

Open austinpray opened this issue 10 years ago • 0 comments

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

austinpray avatar Mar 26 '14 19:03 austinpray