Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Update postcss / cssnano dependencies & webpack config

ZachTRice5643e30be626
diff --git a/package-lock.json b/package-lock.json
index 65ff50665..66f3e05fd 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -16359,7 +16359,7 @@
},
"redux-location-state": {
"version": "github:nasa-gibs/redux-location-state#4e81314253e61ee0f4eaffdc0a5ba0a89194253f",
- "from": "github:nasa-gibs/redux-location-state#4e81314253e61ee0f4eaffdc0a5ba0a89194253f",
+ "from": "github:nasa-gibs/redux-location-state#update-parse-helper",
"dev": true,
"requires": {
"lodash": "^4.13.1"
diff --git a/package.json b/package.json
index 8a5755bf4..f5fe32d50 100644
--- a/package.json
+++ b/package.json
@@ -86,7 +86,7 @@
"cross-env": "^5.2.0",
"css-hot-loader": "^1.4.1",
"css-loader": "^1.0.0",
- "cssnano": "^4.0.5",
+ "cssnano": "^4.1.10",
"eslint": "^4.13.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.8.0",
@@ -113,7 +113,7 @@
"node-ssh": "^5.1.1",
"npm-run-all": "^4.1.1",
"npm-watch": "^0.3.0",
- "optimize-css-assets-webpack-plugin": "^5.0.0",
+ "optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-cli": "^4.1.1",
"postcss-import": "^12.0.1",
"postcss-less": "^3.1.0",
diff --git a/webpack.config.js b/webpack.config.js
index f51cac720..4c91bd29b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -113,12 +113,14 @@ module.exports = {
new OptimizeCSSAssetsPlugin({
cssProcessor: cssnano,
cssProcessorOptions: {
- discardComments: {
- removeAll: true
- },
- map: {
- inline: false
- }
+ preset: ['default', {
+ discardComments: {
+ removeAll: true
+ },
+ map: {
+ inline: false
+ }
+ }]
}
})
]