Skip to content

Commit ff07a11

Browse files
committed
pushed
1 parent 5945136 commit ff07a11

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

Gruntfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ module.exports = function (grunt) {
242242
'<%= config.dist %>',
243243
'<%= config.dist %>/images',
244244
'<%= config.dist %>/styles'
245-
]
245+
],
246+
patterns: {
247+
html: [[/srcset.*\/(.*@2x\.png)/, 'Replacing reference to srcset images']]
248+
}
246249
},
247250
html: ['<%= config.dist %>/{,*/}*.html'],
248251
css: ['<%= config.dist %>/styles/{,*/}*.css']

app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</div>
6666
</div>
6767
</div>
68-
<img src="images/Browser.png" class="browser" srcset="images/Browser.png 1x, images/Browser@2x.png 2x" alt="">
68+
<img src="images/Browser.png" class="browser" srcset="images/Browser@2x.png 2x" alt="">
6969
</div>
7070
<!--<div class="browser-wrapper">-->
7171
<!--&lt;!&ndash;<img src="images/Browser.png" class="browser" srcset="images/Browser.png 1x, images/Browser@2x.png 2x" alt="">&ndash;&gt;-->

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"grunt-contrib-clean": "^0.6.0",
1010
"grunt-contrib-concat": "^0.5.1",
1111
"grunt-contrib-copy": "^0.8.0",
12-
"grunt-contrib-cssmin": "^0.12.2",
12+
"grunt-contrib-cssmin": "^0.14.0",
1313
"grunt-contrib-htmlmin": "^0.4.0",
1414
"grunt-contrib-imagemin": "^1.0.0",
15-
"grunt-contrib-uglify": "^0.8.0",
15+
"grunt-contrib-uglify": "^0.11.0",
1616
"grunt-contrib-watch": "^0.6.1",
1717
"grunt-eslint": "^17.0.0",
18-
"grunt-filerev": "^2.2.0",
18+
"grunt-filerev": "^2.3.1",
1919
"grunt-mocha": "^0.4.12",
2020
"grunt-newer": "^1.1.0",
2121
"grunt-postcss": "^0.7.0",

0 commit comments

Comments
 (0)