Browse Source

website: Only include required CSS for xhrupload example, closes #860

Renée Kooi 6 years ago
parent
commit
0b34f608b5
2 changed files with 4 additions and 2 deletions
  1. 1 0
      website/_config.yml
  2. 3 2
      website/src/examples/xhrupload/app.html

+ 1 - 0
website/_config.yml

@@ -132,6 +132,7 @@ postcss:
       browsers:
         - 'last 2 versions'
     cssnano:
+      safe: true
 
 browsersync:
   files: 'public/examples/**/*.js'

+ 3 - 2
website/src/examples/xhrupload/app.html

@@ -1,9 +1,10 @@
 <!-- Basic Uppy styles -->
-<link rel="stylesheet" href="/uppy/uppy.min.css">
+<link rel="stylesheet" href="https://unpkg.com/@uppy/file-input/dist/style.min.css">
+<link rel="stylesheet" href="https://unpkg.com/@uppy/progress-bar/dist/style.min.css">
 
 <div class="UppyForm">
   <form action="//api2.transloadit.com">
-    <h5>Uppy was not loaded — slow connection, unsupported browser, weird JS error on a page — but upload still works, because HTML is cool like that</h5>
+    <h5>Uppy was not loaded — slow connection, unsupported browser, weird JS error on a page — but the upload still works, because HTML is cool like that</h5>
     <input type="file" name="files[]" multiple="">
     <button type="submit">Fallback Form Upload</button>
   </form>