Commit e4725a50 authored by Mike Greiling's avatar Mike Greiling

convert js-cookie dependency to an npm module

parent e7ac1628
......@@ -20,7 +20,7 @@ require('vendor/jquery.waitforimages');
require('vendor/jquery.caret');
require('vendor/jquery.atwho');
require('vendor/jquery.scrollTo');
window.Cookies = require('vendor/js.cookie');
window.Cookies = require('js-cookie');
require('./autosave');
require('bootstrap/js/affix');
require('bootstrap/js/alert');
......
......@@ -3,7 +3,7 @@
/* global Flash */
window.Vue = require('vue');
window.Cookies = require('vendor/js.cookie');
window.Cookies = require('js-cookie');
function requireAll(context) { return context.keys().map(context); }
requireAll(require.context('./svg', false, /^\.\/.*\.(js|es6)$/));
......
......@@ -4,7 +4,7 @@
/* global Flash */
require('./breakpoints');
window.Cookies = require('vendor/js.cookie');
window.Cookies = require('js-cookie');
require('./flash');
/* eslint-disable max-len */
......
......@@ -7,7 +7,7 @@ jasmine.getJSONFixtures().fixturesPath = 'base/spec/javascripts/fixtures';
// include common libraries
window.$ = window.jQuery = require('jquery');
window._ = require('underscore');
window.Cookies = require('vendor/js.cookie');
window.Cookies = require('js-cookie');
window.Vue = require('vue');
window.Vue.use(require('vue-resource'));
require('jquery-ujs');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment