Selaa lähdekoodia

Bare example watch script

Artur Paikin 8 vuotta sitten
vanhempi
commit
e54d0cf27e
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 2 1
      example/index.html
  2. 1 1
      package.json

+ 2 - 1
example/index.html

@@ -9,10 +9,11 @@
     <button id="uppyModalOpener">Open Modal</button>
     <link href="../dist/uppy.min.css" rel="stylesheet">
     <script src="../dist/uppy.min.js"></script>
-    <script src="../dist/locales/ru_RU.min.js"></script>
+    <script src="../dist/locales/ru_RU.js"></script>
     <script>
       var uppy = new Uppy.Core({locales: Uppy.locales.ru_RU, debug: true})
         .use(Uppy.plugins.Modal, {trigger: '#uppyModalOpener'})
+        .use(Uppy.plugins.Dashboard, {target: Uppy.plugins.Modal})
         .use(Uppy.plugins.Dummy, {target: Uppy.plugins.Modal})
         .run();
     </script>

+ 1 - 1
package.json

@@ -35,7 +35,7 @@
     "watch:css": "nodemon --watch src --ext scss -x 'npm run build:css && node website/update.js'",
     "watch:fast": "npm-run-all --parallel watch:css web:preview",
     "watch:js": "nodemon --watch src --ext js -x 'npm run build:bundle && node website/update.js'",
-    "watch": "npm-run-all --parallel watch:js watch:css && node website/update.js",
+    "watch": "npm-run-all --parallel watch:js watch:css",
     "web:build": "cd website && node update.js && ./node_modules/.bin/hexo generate --silent && node build-examples.js",
     "web:clean": "cd website && ./node_modules/.bin/hexo clean",
     "web:deploy": "npm-run-all web:install web:disc docs web:build && ./bin/web-deploy",