ropbla9 / vue-reactive-storage Goto Github PK
View Code? Open in Web Editor NEWReactive layer for interacting with localStorage from Vue. Plugin for Vue 2.
Reactive layer for interacting with localStorage from Vue. Plugin for Vue 2.
i get this warning when i try to "npm run build" in my "vue-cli pwa template" app.
ERROR in static/js/vendor.e94132c75cc782c7d66d.js from UglifyJs
Unexpected token name «key», expected punc «;» [./~/vue-reactivestorage/index.js:15,0][static/js/vendor.e94132c75cc782c7d66d.js:56346,21]
I know this is somehow connected to to limitations of Uglify.
But maybe somebody can help on that?
It is impossible to store values such as false
or 0
using this plugin.
Change the ||
here to ??
, or use .hasOwnProperty
instead.
How do you use this inside Vuex or Middleware ?
Hi!
Has the current master been released to npmjs? Npmjs states version 1.3.0, while master package.json states 1.3.1.
Hi @ropbla9 can this be extended to swap store for store2 which is a more advanced local / session storage api. It should also be possible to add values to localstorage without having to list the variables in the array and still have them reactive just like observables? I am looking to try something like that, will do a PR if it works
Hi, there's a single let
statement in the code that trips up uglify-js when I try to compile a project in webpack. It means I have to add a specific rule to test for this file and run babel on it in order for it to work.
Could the module be made ES5-compliant please?
This npm package's main file is defined to be dist/index.js
, which is generated by webpack in development mode.
Run webpack with -p
or set "mode": "production"
in the config.
Or just set main
in package.json
to be src/index.js
instead, and let the webpack of the users of the package build it.
You are console.log
ging in production, user-facing environments. Why?
Please delete this line.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.