Skip to content

Commit

Permalink
Add autoprefixer
Browse files Browse the repository at this point in the history
  • Loading branch information
hiasinho committed Aug 2, 2016
1 parent 66349c6 commit dc129db
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.5.0
2 changes: 1 addition & 1 deletion dist/leaflet-vector-markers.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"lintAndTest": "npm run lint && jest"
},
"dependencies": {
"leaflet": "^0.7.0"
"autoprefixer": "^6.3.7",
"leaflet": "^0.7.0",
"postcss-loader": "^0.9.1"
},
"peerDependencies": {
"leaflet": "^0.7.0"
Expand Down
3 changes: 1 addition & 2 deletions src/leaflet-vector-markers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ Version: 0.0.5
}

/* Retina displays */
@media (min--moz-device-pixel-ratio: 1.5),(-o-min-device-pixel-ratio: 3/2),
(-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5),(min-resolution: 1.5dppx) {
@media (min--moz-device-pixel-ratio: 1.5),(-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5),(min-resolution: 1.5dppx) {
.vector-marker {
background-size: 720px 46px;
}
Expand Down
6 changes: 4 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

var path = require('path');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var autoprefixer = require('autoprefixer');

module.exports = {
output: {
Expand All @@ -25,7 +26,7 @@ module.exports = {
test: /\.scss$/,
loader: ExtractTextPlugin.extract(
'style',
'css!sass'
'css!postcss-loader!sass'
)
}
]
Expand All @@ -35,5 +36,6 @@ module.exports = {
],
sassLoader: {
includePaths: [path.resolve(__dirname, "./src")]
}
},
postcss: [ autoprefixer({ browsers: ['last 3 version', '> 10%', 'IE 8'] }) ]
};

0 comments on commit dc129db

Please sign in to comment.