Przeglądaj źródła

website: update to postcss 7

Renée Kooi 6 lat temu
rodzic
commit
c2a65431a9

+ 4 - 14
website/_config.yml

@@ -13,12 +13,12 @@ logo_large: /images/logos/uppy-dog-full.svg
 logo_medium: /images/logos/uppy-logo-2019.svg
 logo_icon: /images/logos/uppy-dog-head-arrow.png
 description: >
-  Uppy fetches files locally and from remote places like Dropbox or Instagram. 
-  With its seamless integration, reliability and ease of use, 
+  Uppy fetches files locally and from remote places like Dropbox or Instagram.
+  With its seamless integration, reliability and ease of use,
   Uppy is truly your best friend in file uploading.
 descriptionWho: >
   Uppy is brought to you by the people
-  behind <a href="https://transloadit.com">Transloadit</a>, and as such will 
+  behind <a href="https://transloadit.com">Transloadit</a>, and as such will
   have first class support
   for adding their uploading and encoding backend, but this is opt-in,
   and you can just as easily roll your own.
@@ -133,16 +133,6 @@ node_sass:
   precision: 5
   sourceComments: false
 
-postcss:
-  plugins:
-    postcss-inline-svg:
-      path: 'src/images'
-    autoprefixer:
-      browsers:
-        - 'last 2 versions'
-    cssnano:
-      safe: true
-
 browsersync:
   files: 'public/examples/**/*.js'
   watchOptions:
@@ -161,4 +151,4 @@ alias:
 
 include_markdown:
   dir: "src/_template"   # Base directory of template markdown
-  verbose : true    
+  verbose : true

Plik diff jest za duży
+ 475 - 233
website/package-lock.json


+ 3 - 3
website/package.json

@@ -6,8 +6,9 @@
     "version": "3.8.0"
   },
   "dependencies": {
-    "autoprefixer": "^7.2.6",
-    "cssnano": "^3.10.0",
+    "@goto-bus-stop/hexo-renderer-postcss": "^2.0.0",
+    "autoprefixer": "^9.5.1",
+    "cssnano": "^4.1.10",
     "he": "^1.1.1",
     "hexo": "3.8.0",
     "hexo-browsersync": "^0.3.0",
@@ -21,7 +22,6 @@
     "hexo-include-markdown": "^1.0.2",
     "hexo-renderer-ejs": "^0.3.1",
     "hexo-renderer-marked": "^0.3.2",
-    "hexo-renderer-postcss": "git+https://github.com/arturi/hexo-renderer-postcss.git",
     "hexo-renderer-scss": "^1.2.0",
     "hexo-server": "^0.3.2",
     "hexo-tag-emojis": "^2.0.1",

+ 11 - 0
website/postcss.config.js

@@ -0,0 +1,11 @@
+module.exports = {
+  plugins: {
+    'postcss-inline-svg': {
+      path: 'src/images'
+    },
+    autoprefixer: {
+      browsers: ['last 2 versions']
+    },
+    cssnano: { safe: true }
+  }
+}

+ 1 - 1
website/themes/uppy/layout/partials/generated_stargazers.ejs

@@ -1 +1 @@
-19226
+19226

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików